staging: lustre: llite: fixup return value ll_direct_IO_26
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 28 Apr 2016 01:37:21 +0000 (21:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 04:53:18 +0000 (21:53 -0700)
Return the correct values from ll_direct_IO_26.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4069
Reviewed-on: http://review.whamcloud.com/8080
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-Off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/rw26.c

index a740c7a03db6ea02e5f3eb4c6a318499cf660ef4..93411896aef0d8adff251a236599cb7539b03e7e 100644 (file)
@@ -446,7 +446,7 @@ out:
        }
 
        cl_env_put(env, &refcheck);
-       return tot_bytes ? : result;
+       return tot_bytes ? tot_bytes : result;
 }
 
 /**