summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-07-31 11:51:22 +0100
committerStefan Roese <[email protected]>2025-10-13 16:13:21 +0200
commitbde84072d007629a75ff746f986b80e4cba5424e (patch)
tree3d0d73ce5418958f4958a0e7ae24aa7aeb1ba1ba /drivers
parent4b1b035e748de19e635b554401634d14c9a08448 (diff)
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 <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/octeontx_hsmmc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mmc/octeontx_hsmmc.c b/drivers/mmc/octeontx_hsmmc.c
index ffc8d4c7874..bb4fb29424b 100644
--- a/drivers/mmc/octeontx_hsmmc.c
+++ b/drivers/mmc/octeontx_hsmmc.c
@@ -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;