Merge tag '6.6-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
[sfrench/cifs-2.6.git] / drivers / infiniband / ulp / srp / ib_srp.c
index 0e513a7e5ac808999f3541ef141f43d700fd6150..1574218764e0a748441cf73b4cfc9716b0bbfa2d 100644 (file)
@@ -1979,12 +1979,8 @@ static void srp_process_rsp(struct srp_rdma_ch *ch, struct srp_rsp *rsp)
 
                if (unlikely(rsp->flags & SRP_RSP_FLAG_DIUNDER))
                        scsi_set_resid(scmnd, be32_to_cpu(rsp->data_in_res_cnt));
-               else if (unlikely(rsp->flags & SRP_RSP_FLAG_DIOVER))
-                       scsi_set_resid(scmnd, -be32_to_cpu(rsp->data_in_res_cnt));
                else if (unlikely(rsp->flags & SRP_RSP_FLAG_DOUNDER))
                        scsi_set_resid(scmnd, be32_to_cpu(rsp->data_out_res_cnt));
-               else if (unlikely(rsp->flags & SRP_RSP_FLAG_DOOVER))
-                       scsi_set_resid(scmnd, -be32_to_cpu(rsp->data_out_res_cnt));
 
                srp_free_req(ch, req, scmnd,
                             be32_to_cpu(rsp->req_lim_delta));