public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Selvarasu Ganesan <selvarasu.g@samsung.com>
To: "stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH 1/2] usb: xhci: Fix unassigned variable 'tmp_minor_revision' in xhci_add_in_port()
Date: Wed, 12 Feb 2025 09:51:34 +0530	[thread overview]
Message-ID: <3e84cb46-e2fe-4c72-9fd0-d49314b3e78e@samsung.com> (raw)
In-Reply-To: <20250211092400.734-2-selvarasu.g@samsung.com>


On 2/11/2025 2:53 PM, Selvarasu Ganesan wrote:
> Fix the following smatch error:
> drivers/usb/host/xhci-mem.c:2060 xhci_add_in_port() error: unassigned variable 'tmp_minor_revision'
>
> Fixes: d9b0328d0b8b ("xhci: Show ZHAOXIN xHCI root hub speed correctly")
> Cc: stable@vger.kernel.org
> Signed-off-by: Selvarasu Ganesan <selvarasu.g@samsung.com>
> ---
>   drivers/usb/host/xhci-mem.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
> index 92703efda1f7..8665893df894 100644
> --- a/drivers/usb/host/xhci-mem.c
> +++ b/drivers/usb/host/xhci-mem.c
> @@ -1980,7 +1980,7 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
>   {
>   	u32 temp, port_offset, port_count;
>   	int i;
> -	u8 major_revision, minor_revision, tmp_minor_revision;
> +	u8 major_revision, minor_revision, tmp_minor_revision = 0;
>   	struct xhci_hub *rhub;
>   	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
>   	struct xhci_port_cap *port_cap;

Hello Maintainers,

Please ignore this changes as its duplicate of 
https://lore.kernel.org/all/1296674576.21739322782868.JavaMail.epsvc@epcpadp2new/


Thanks,

Selva


  reply	other threads:[~2025-02-12  4:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20250211092453epcas5p17c1ddadb1294b8b3effd594418e752fc@epcas5p1.samsung.com>
     [not found] ` <20250211092400.734-1-selvarasu.g@samsung.com>
2025-02-11  9:23   ` [PATCH 1/2] usb: xhci: Fix unassigned variable 'tmp_minor_revision' in xhci_add_in_port() Selvarasu Ganesan
2025-02-12  4:21     ` Selvarasu Ganesan [this message]
2025-02-11  9:23   ` [PATCH 2/2] usb: xhci: Fix unassigned variable 'bcdUSB' in xhci_create_usb3x_bos_desc() Selvarasu Ganesan
2025-02-12  4:23     ` Selvarasu Ganesan
     [not found] <CGME20250211115711epcas5p46b72b2670571d636c229d80378284ed9@epcas5p4.samsung.com>
     [not found] ` <20250211115635.757-1-selvarasu.g@samsung.com>
2025-02-11 11:56   ` [PATCH 1/2] usb: xhci: Fix unassigned variable 'tmp_minor_revision' in xhci_add_in_port() Selvarasu Ganesan

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=3e84cb46-e2fe-4c72-9fd0-d49314b3e78e@samsung.com \
    --to=selvarasu.g@samsung.com \
    --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