aha1542: use memcpy_{from,to}_bvec
PATCH 1/1 aha1542: use memcpy_{from,to}_bvec
Use the memcpy_{from,to}_bvec helpers instead of open coding them.
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/scsi/aha1542.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/scsi/aha1542.c +2 -4
@@ -268,8 +268,7 @@ static void aha1542_free_cmd(struct scsi_cmnd *cmd)struct bio_vec bv;rq_for_each_segment (bv, rq, iter) { -memcpy_to_page (bv.bv_page, bv.bv_offset, buf, - bv.bv_len); +memcpy_to_bvec (&bv, buf); buf += bv.bv_len; } }
@@ -454,8 +453,7 @@ static int aha1542_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *cmd)struct bio_vec bv;rq_for_each_segment (bv, rq, iter) { -memcpy_from_page (buf, bv.bv_page, bv.bv_offset, - bv.bv_len); +memcpy_from_bvec (buf, &bv); buf += bv.bv_len; } }
Signature · 1 line
2.30.2
Martin K. Petersen
AppliedChristoph,
Quoted 1 line
Use the memcpy_{from,to}_bvec helpers instead of open coding them.
Applied to 5.16/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 3 lines · Christoph Hellwig
Use the memcpy_{from,to}_bvec helpers instead of open coding them.
Applied to 5.16/scsi-queue, thanks!
[1/1] aha1542: use memcpy_{from,to}_bvec
https://git.kernel.org/mkp/scsi/c/e6ab6113526a
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering