From 42e88fc0baad0ed74a484cc96f9057f8b353eae9 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 11 Feb 2019 00:10:12 +0000 Subject: [PATCH] scst: Use sg_virt() where appropriate This patch does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7916 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 61273fecf..78c0d1973 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -5043,9 +5043,7 @@ static inline int __scst_get_buf(struct scst_cmd *cmd, int sg_cnt, goto out; } - *buf = page_address(sg_page(sg)); - *buf += sg->offset; - + *buf = sg_virt(sg); res = sg->length; cmd->get_sg_buf_entry_num++;