From: Lisa Nguyen Date: Mon, 28 Oct 2013 00:55:05 +0000 (-0700) Subject: staging: lustre: lnet: Rewrite return statement in socklnd.c X-Git-Tag: next-20131105~14^2~87 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6a123705d8eb121b648b5c436fa4d6ccfcd152ee;p=karo-tx-linux.git staging: lustre: lnet: Rewrite return statement in socklnd.c Rewrite the return statement in socklnd.c to eliminate the use of a ternary operator. This will prevent the checkpatch.pl script from generating a warning saying to remove () from this particular return statement. Signed-off-by: Lisa Nguyen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c index 6825b452e5fe..2ddc3aadb8d6 100644 --- a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c +++ b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c @@ -1768,7 +1768,10 @@ ksocknal_close_matching_conns (lnet_process_id_t id, __u32 ipaddr) if (id.nid == LNET_NID_ANY || id.pid == LNET_PID_ANY || ipaddr == 0) return (0); - return (count == 0 ? -ENOENT : 0); + if (count == 0) + return -ENOENT; + else + return 0; } void