From 52baf2d9486750c04fa18b1bdc19581ef9b14d5b Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 21 Mar 2014 15:54:56 +0000 Subject: ead: set_nonblock() is doing nothing (typo) spotted with cppcheck Signed-off-by: Etienne CHAMPETIER git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39993 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/network/services/ead/src/ead-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/network') 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; -- cgit v1.2.3