summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-02-08 13:24:59 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-02-12 11:13:41 -0500
commit960bf87a4fbe46bec1e69fcb6868f43c3c3c9456 (patch)
treeb27e03a78acd3299c254ee1fad4fb05f5dcc5cdc /drivers/scsi/libiscsi.c
parentc208556ab3627b5f53144e9cbf739d6371d80543 (diff)
downloadlinux-960bf87a4fbe46bec1e69fcb6868f43c3c3c9456.tar.bz2
scsi: libiscsi: Use scsi_[gs]et_resid() where appropriate
This patch does not change any functionality. Cc: Lee Duncan <lduncan@suse.com> Cc: Chris Leech <cleech@redhat.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index bca3a8636c27..dd314d2b1111 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -915,7 +915,7 @@ iscsi_data_in_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
if (res_count > 0 &&
(rhdr->flags & ISCSI_FLAG_CMD_OVERFLOW ||
res_count <= sc->sdb.length))
- sc->sdb.resid = res_count;
+ scsi_set_resid(sc, res_count);
else
sc->result = (DID_BAD_TARGET << 16) | rhdr->cmd_status;
}