On 3/14/23 8:01 PM, Danila Chernetsov wrote:
> From: Sergey Shtylyov <[email protected]>
>
> commit b0ec7e55fce65f125bd1d7f02e2dc4de62abee34 upstream.
>
> 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 <[email protected]>
> Link: https://lore.kernel.org/r/[email protected]
> Signed-off-by: Greg Kroah-Hartman <[email protected]>
> Signed-off-by: Danila Chernetsov <[email protected]>
> ---
> drivers/usb/musb/musb_core.c | 16 ++--------------
> 1 file changed, 2 insertions(+), 14 deletions(-)
Hum... why do you need it it 5.10.y?
[...]
MBR, Sergey