[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49dbcc338213926850d61faba700241155d04fc1.camel@perches.com>
Date: Sat, 18 Dec 2021 02:49:41 -0800
From: Joe Perches <joe@...ches.com>
To: Julio Faracco <jcfaracco@...il.com>, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: stern@...land.harvard.edu, gregkh@...uxfoundation.org,
axboe@...nel.dk, tglx@...utronix.de, damien.lemoal@....com,
dkadashev@...il.com, paul.gortmaker@...driver.com,
zhouyanjie@...yeetech.com, niklas.cassel@....com,
penguin-kernel@...ove.sakura.ne.jp, macro@...am.me.uk,
caihuoqing@...du.com
Subject: Re: [PATCH] usb: fixing some clang warnings inside usb host drivers
On Sat, 2021-12-18 at 01:24 -0300, Julio Faracco wrote:
> Clang is reporting some issues related variable values not used and
> other issues inside some USB host drivers. This commit removes some
> trashes and adds some strategies to mitigate those warnings.
[]
> diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
[]
> @@ -903,7 +903,6 @@ static ssize_t fill_registers_buffer(struct debug_buffer *buf)
> temp = scnprintf(next, size, "complete %ld unlink %ld\n",
> ehci->stats.complete, ehci->stats.unlink);
> size -= temp;
> - next += temp;
> #endif
I think this should line not be removed as it's a code pattern
repeated multiple times above and another entry could be added
below.
Powered by blists - more mailing lists