On 4/6/23 01:48, Tom Rini wrote:
When building with clang, it notes that sdinfo may be unused
uninitialized in some cases. This appears to be true from reading the
code, and we can simply set the variable to zero to start with and be as
correct as before.

Signed-off-by: Tom Rini <tr...@konsulko.com>
---
I'm honestly not sure why gcc isn't complaining here as this seems to be
a real issue.

It seems this also isn't the first issue where gcc isn't complaining and it should be complaining. IIRC there was one more case in spl_mmc.c too .

Reviewed-by: Marek Vasut <ma...@denx.de>

Reply via email to