staging: lustre: llite: fixup return value ll_direct_IO_26
authorDmitry Eremin <[email protected]>
Thu, 28 Apr 2016 01:37:21 +0000 (21:37 -0400)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4069
Reviewed-on: http://review.whamcloud.com/8080
Reviewed-by: John L. Hammond <[email protected]>
Reviewed-by: James Simmons <[email protected]>
Reviewed-by: Oleg Drokin <[email protected]>
Signed-Off-by: James Simmons <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
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;
 }
 
 /**