]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: gadget: f_mass_storage: Rework do_request_sense slightly
authorTom Rini <trini@konsulko.com>
Wed, 5 Apr 2023 23:48:57 +0000 (19:48 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:27 +0000 (15:31 -0400)
commit73b39a76e34a3b88a7a2c58588c9a5a604a51d90
treeed8bc5f51d5d89007b28ba3ceb637a0730dc9949
parent51a765b37671b4460fdefef5000b9eb6988fddc8
usb: gadget: f_mass_storage: Rework do_request_sense slightly

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@konsulko.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/gadget/f_mass_storage.c