]> git.ipfire.org Git - thirdparty/u-boot.git/commit
scsi: Make static functions consistent using lbaint_t
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 7 Jul 2025 14:12:20 +0000 (15:12 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 14 Jul 2025 21:16:43 +0000 (15:16 -0600)
commit41713b99671f6775c18d70d31ccd8b27e438abe1
tree2529d6d7f916b8c4c92b38b6cab38bdd2bd36c68
parentc28ff2112aa7a7d8a4f4d53e3b39ed9bb03e7f8d
scsi: Make static functions consistent using lbaint_t

The static helper functions are inconsistent in their use of their third
parameter which is used to pass a block count. Keep consistency by
always using lbaint_t here. This will fix an issue where two left shifts
were overflowing the variable type in use.

This issue found by Smatch

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/scsi/scsi.c