[PATCH] qla2xxx: use sg_virt()
From: Geliang Tang
Date: Thu Mar 23 2017 - 09:17:08 EST
Use sg_virt() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
---
drivers/scsi/qla2xxx/qla_isr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 3203367..9610d85 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -1991,7 +1991,7 @@ qla2x00_handle_dif_error(srb_t *sp, struct sts_entry_24xx *sts24)
return 1;
}
- spt = page_address(sg_page(sg)) + sg->offset;
+ spt = sg_virt(sg);
spt += j;
spt->app_tag = 0xffff;
--
2.9.3