Home
last modified time | relevance | path

Searched hist:"196 a58bdec7c324d6d862cba19069b77ddd48b90" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/musb/
H A Dmusb_core.cdiff 196a58bdec7c324d6d862cba19069b77ddd48b90 Sat Jun 18 07:06:16 CDT 2022 Sergey Shtylyov <s.shtylyov@omp.ru> usb: musb: core: drop redundant checks

In musb_{save|restore}_context() the expression '&musb->endpoints[i]' just
cannot be NULL, so the checks have no sense at all -- after dropping them,
the local variables 'hw_ep' are no longer necessary, so drop them as well.

Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/3f8f60d9-f1b5-6b2c-1222-39b156151a22@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>