[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yb2mOUHSwE+iUrkm@kroah.com>
Date: Sat, 18 Dec 2021 10:13:29 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Julio Faracco <jcfaracco@...il.com>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
stern@...land.harvard.edu, 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, Dec 18, 2021 at 01:24:20AM -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.
>
> The most important is the maxpacket not checking for zeros inside both
> functions qtd_fill(). Even if this variable is always higher than zero,
> it should be checked to avoid this kind of verbosity.
>
> Signed-off-by: Julio Faracco <jcfaracco@...il.com>
Please break this up into "one patch per warning" and show the warning
that is happening as well, as it is not obvious why you are changing
these files in the way you are doing it.
thanks,
greg k-h
Powered by blists - more mailing lists