Thread (3 messages) 3 messages, 3 authors, 2021-12-06

Re: [PATCH] net: dsa: mv88e6xxx: fix uninit-value err in mv88e6393x_serdes_power

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-12-06 13:45:21

On Mon, Dec 06, 2021 at 06:13:52PM +0800, Jackie Liu wrote:
From: Jackie Liu <redacted>

'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: [ref]

At least here some analysis has been done why there is a warning.

Should we add a default?

       Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help