spl: mmc: Avoid size growth in spl_mmc_find_device() debug
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2024 17:23:54 +0000 (10:23 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 12 Dec 2024 22:35:23 +0000 (16:35 -0600)
commita2c90dc3711da518fdea7a95a1a5a057e98fea3c
tree46d9817e3ee6a6d13f8726e067a7bcfca18518c7
parent62224280d9e89648ae90346c0aede76f9b7e7610
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