[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ya4T5x0EOktaF2FU@lunn.ch>
Date: Mon, 6 Dec 2021 14:45:11 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jackie Liu <liu.yun@...ux.dev>
Cc: kabel@...nel.org, davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCH] net: dsa: mv88e6xxx: fix uninit-value err in
mv88e6393x_serdes_power
On Mon, Dec 06, 2021 at 06:13:52PM +0800, Jackie Liu wrote:
> From: Jackie Liu <liuyun01@...inos.cn>
>
> 'err' is not initialized. If the value of cmode is not in the switch case,
> it will cause a logic error and return early.
Same fix as: <20211206113219.17640-1-amhamza.mgc@...il.com>
At least here some analysis has been done why there is a warning.
Should we add a default?
Andrew
Powered by blists - more mailing lists