]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: lnet: return of an error code should be negative
authorSumit Pundir <pundirsumit11@gmail.com>
Sun, 28 Jan 2018 05:24:55 +0000 (10:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 14:13:31 +0000 (15:13 +0100)
Return value of error codes should typically be negative.
Issue reported by checkpatch.pl

Signed-off-by: Sumit Pundir <pundirsumit11@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/framework.c

index c7697f66f663bd5ce939849dc9c3f6b1ae529b28..0ca1e3a780ca25b2e0ca8864bdfb30f6d071ba60 100644 (file)
@@ -187,7 +187,7 @@ sfw_del_session_timer(void)
                return 0;
        }
 
-       return EBUSY; /* racing with sfw_session_expired() */
+       return -EBUSY; /* racing with sfw_session_expired() */
 }
 
 static void