Staging: lustre: Removal of assignment in if condition in conrpc.c
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 17 Oct 2013 14:28:45 +0000 (19:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2013 16:06:44 +0000 (09:06 -0700)
This patch fixes the following checkpatch.pl error in conrpc.c-
ERROR: do not use assignment in if condition

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/conrpc.c

index 88a495641faa9485f91b5e4768d95d9fcf2de55f..9a52f25b72e90931053c7bf642789797ca522325 100644 (file)
@@ -531,7 +531,9 @@ lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans,
                if (readent == NULL)
                        continue;
 
-               if ((error = readent(trans->tas_opc, msg, ent)) != 0)
+               error = readent(trans->tas_opc, msg, ent);
+
+               if (error != 0)
                        return error;
        }