[PATCH 7/9] usb: gadget: f_mass_storage: Rework do_request_sense slightly
Marek Vasut
marex at denx.de
Thu Apr 6 03:19:07 CEST 2023
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 <trini at 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 <marex at denx.de>
More information about the U-Boot
mailing list