spl: remove redundant prints in boot_from_devices
authorAnshul Dalal <anshuld@ti.com>
Fri, 31 Oct 2025 07:46:26 +0000 (13:16 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 6 Nov 2025 23:42:07 +0000 (17:42 -0600)
commitfdf36c2e9ad4f770ee951398a86bd55404d9b7ec
treecf7a5ab699769447d37093631848b9790fedcfd6
parent9e2bce78fd5ea59161b91b0885cfccb6fdf3b96f
spl: remove redundant prints in boot_from_devices

The null check for loader in boot_from_devices was moved earlier in the
code path by the commit ae409a84e7bff ("spl: NULL check variable before
dereference"), therefore the subsequent null checks for loader are not
necessary.

This patch removes those checks and refactors the prints to be more
useful in case of errors.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
common/spl/spl.c