sata: sata_mv: Remove always true test
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 22 Jul 2025 16:42:20 +0000 (17:42 +0100)
committerStefan Roese <stefan.roese@mailbox.org>
Mon, 13 Oct 2025 14:13:21 +0000 (16:13 +0200)
commitae7fea1b374d8c7cb3b1003e4a6cc80c1d72d4b0
tree4cd46fa7196facc29625210cb8af80abefb09f6f
parent48f21e66e360552c75d70a50421d0e0ed1f59e90
sata: sata_mv: Remove always true test

Smatch reported an issue with a test that was always true in that an
unsigned variable will always be >= to zero. This led to a closer look
at the code which showed that some static functions returned values that
were always discarded so make those functions return void. Also make
the passing of block counts in those functions always use lbaint_t.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
drivers/ata/sata_mv.c