From: Dmitry Eremin Date: Thu, 28 Apr 2016 01:37:21 +0000 (-0400) Subject: staging: lustre: llite: fixup return value ll_direct_IO_26 X-Git-Tag: v4.7-rc1~90^2~300 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1b3f4f90c4fe0205e10d0d703ee599f726cd96b6;p=karo-tx-linux.git staging: lustre: llite: fixup return value ll_direct_IO_26 Return the correct values from ll_direct_IO_26. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4069 Reviewed-on: http://review.whamcloud.com/8080 Reviewed-by: John L. Hammond Reviewed-by: James Simmons Reviewed-by: Oleg Drokin Signed-Off-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/llite/rw26.c b/drivers/staging/lustre/lustre/llite/rw26.c index a740c7a03db6..93411896aef0 100644 --- a/drivers/staging/lustre/lustre/llite/rw26.c +++ b/drivers/staging/lustre/lustre/llite/rw26.c @@ -446,7 +446,7 @@ out: } cl_env_put(env, &refcheck); - return tot_bytes ? : result; + return tot_bytes ? tot_bytes : result; } /**