mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-18 16:01:32 +01:00
mmc: octeontx_hsmmc: Remove impossible test
In octeontx_mmc_io_drive_setup drive and slew are tested for being less than 0 but they are declared as uint fields so this test must always fail. Just remove the test. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
This commit is contained in:
parent
4b1b035e74
commit
bde84072d0
@ -2828,9 +2828,6 @@ static void octeontx_mmc_io_drive_setup(struct mmc *mmc)
|
||||
struct octeontx_mmc_slot *slot = mmc_to_slot(mmc);
|
||||
union mio_emm_io_ctl io_ctl;
|
||||
|
||||
if (slot->drive < 0 || slot->slew < 0)
|
||||
return;
|
||||
|
||||
io_ctl.u = 0;
|
||||
io_ctl.s.drive = slot->drive;
|
||||
io_ctl.s.slew = slot->slew;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user