From: Sergey Shtylyov <s.shtylyov@omp.ru>
To: Danila Chernetsov <listdansp@mail.ru>, <stable@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Bin Liu <b-liu@ti.com>, <linux-usb@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <lvc-project@linuxtesting.org>
Subject: Re: [PATCH 5.10 1/1] usb: musb: core: drop redundant checks
Date: Tue, 14 Mar 2023 20:06:34 +0300 [thread overview]
Message-ID: <04bbe1e9-8b6b-9b06-f00c-40ccda1b47ae@omp.ru> (raw)
In-Reply-To: <20230314170113.11968-2-listdansp@mail.ru>
On 3/14/23 8:01 PM, Danila Chernetsov wrote:
> From: Sergey Shtylyov <s.shtylyov@omp.ru>
>
> 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 <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>
> Signed-off-by: Danila Chernetsov <listdansp@mail.ru>
> ---
> 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
next prev parent reply other threads:[~2023-03-14 17:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 17:01 [PATCH 5.10 0/1] " Danila Chernetsov
2023-03-14 17:01 ` [PATCH 5.10 1/1] " Danila Chernetsov
2023-03-14 17:06 ` Sergey Shtylyov [this message]
2023-03-14 17:08 ` Greg Kroah-Hartman
[not found] ` <10af6434-a466-7884-5650-fd8de01d540b@mail.ru>
2023-03-15 4:26 ` Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=04bbe1e9-8b6b-9b06-f00c-40ccda1b47ae@omp.ru \
--to=s.shtylyov@omp.ru \
--cc=b-liu@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=listdansp@mail.ru \
--cc=lvc-project@linuxtesting.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®