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
This commit is contained in:
Bart Van Assche
2019-02-11 00:10:12 +00:00
parent 77d9c561d5
commit 42e88fc0ba

View File

@@ -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++;