mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 02:31:27 +00:00
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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user