spl: mmc: Avoid size growth in spl_mmc_find_device() debug
authorSimon Glass <sjg@chromium.org>
Thu, 19 Dec 2024 18:28:49 +0000 (11:28 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 27 Dec 2024 21:16:10 +0000 (15:16 -0600)
commit8369dd058ac3008b3a0c8b2c2e87d4e86895a79b
tree6bc1656f39809dc6dcbf0f3637e627267edd30e8
parent337bfdce5aa52637b482b182db959b9bb058f4b7
spl: mmc: Avoid size growth in spl_mmc_find_device() debug

The for() loop ends up being in the code even if the log_debug() does
nothing. Add a condition to fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
common/spl/spl_mmc.c