ead: set_nonblock() is doing nothing (typo)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 21 Mar 2014 15:54:56 +0000 (15:54 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 21 Mar 2014 15:54:56 +0000 (15:54 +0000)
spotted with cppcheck

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39993 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/network/services/ead/src/ead-client.c

index 54d8b13..6d7e07d 100644 (file)
@@ -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;