From: Felix Fietkau Date: Fri, 21 Mar 2014 15:54:56 +0000 (+0000) Subject: ead: set_nonblock() is doing nothing (typo) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c029cc26290ee490fae85bbc413c3b0849927eb;p=openwrt%2Fstaging%2Fblocktrron.git ead: set_nonblock() is doing nothing (typo) spotted with cppcheck Signed-off-by: Etienne CHAMPETIER SVN-Revision: 39993 --- diff --git a/package/network/services/ead/src/ead-client.c b/package/network/services/ead/src/ead-client.c index 54d8b1343f..6d7e07dd44 100644 --- a/package/network/services/ead/src/ead-client.c +++ b/package/network/services/ead/src/ead-client.c @@ -67,7 +67,7 @@ static uint16_t sid = 0; static void set_nonblock(int enable) { - if (enable == !!(sockflags & O_NONBLOCK)); + if (enable == !!(sockflags & O_NONBLOCK)) return; sockflags ^= O_NONBLOCK;