From: Sumit Pundir Date: Sun, 28 Jan 2018 05:24:55 +0000 (+0530) Subject: staging: lustre: lnet: return of an error code should be negative X-Git-Tag: for-linus-20180413~40^2~508 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=56cabde2914e6c25a389de71ac5f92239f25139a;p=linux-block.git staging: lustre: lnet: return of an error code should be negative Return value of error codes should typically be negative. Issue reported by checkpatch.pl Signed-off-by: Sumit Pundir Reviewed-by: Andreas Dilger Reviewed-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/selftest/framework.c b/drivers/staging/lustre/lnet/selftest/framework.c index c7697f66f663..0ca1e3a780ca 100644 --- a/drivers/staging/lustre/lnet/selftest/framework.c +++ b/drivers/staging/lustre/lnet/selftest/framework.c @@ -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