Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1607472 > unrolled thread

[PATCH] qla2xxx: use sg_virt()

Started byGeliang Tang <geliangtang@gmail.com>
First post2017-03-23 14:20 +0100
Last post2017-03-23 14:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH] qla2xxx: use sg_virt() Geliang Tang <geliangtang@gmail.com> - 2017-03-23 14:20 +0100

#1607472 — [PATCH] qla2xxx: use sg_virt()

FromGeliang Tang <geliangtang@gmail.com>
Date2017-03-23 14:20 +0100
Subject[PATCH] qla2xxx: use sg_virt()
Message-ID<toaOJ-2Hz-15@gated-at.bofh.it>
Use sg_virt() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web