mspro_block: drop nth_page() usage within SG entry
It's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage. Link: https://lkml.kernel.org/r/20250901150359.867252-28-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Maxim Levitsky <maximlevitsky@gmail.com> Cc: Alex Dubov <oakad@yahoo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
f3dd22376e
commit
58f2c18583
|
|
@ -560,8 +560,7 @@ has_int_reg:
|
|||
t_offset += msb->current_page * msb->page_size;
|
||||
|
||||
sg_set_page(&t_sg,
|
||||
nth_page(sg_page(&(msb->req_sg[msb->current_seg])),
|
||||
t_offset >> PAGE_SHIFT),
|
||||
sg_page(&(msb->req_sg[msb->current_seg])) + (t_offset >> PAGE_SHIFT),
|
||||
msb->page_size, offset_in_page(t_offset));
|
||||
|
||||
memstick_init_req_sg(*mrq, msb->data_dir == READ
|
||||
|
|
|
|||
Loading…
Reference in New Issue