]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/target/target_core_file.c
target/fileio: Fix zero-length READ and WRITE handling
[karo-tx-linux.git] / drivers / target / target_core_file.c
index 1bf6c31e4c21459ec377db58f049ade94faef5a3..73b8f93a5fefbf18dfe06f763ffc07ceaca059a3 100644 (file)
@@ -608,8 +608,7 @@ fd_execute_rw(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents,
        if (ret < 0)
                return TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
 
-       if (ret)
-               target_complete_cmd(cmd, SAM_STAT_GOOD);
+       target_complete_cmd(cmd, SAM_STAT_GOOD);
        return 0;
 }