From 56cabde2914e6c25a389de71ac5f92239f25139a Mon Sep 17 00:00:00 2001 From: Sumit Pundir Date: Sun, 28 Jan 2018 10:54:55 +0530 Subject: [PATCH] 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 --- drivers/staging/lustre/lnet/selftest/framework.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2