Re: [PATCH] net: sky2: initialize return of gm_phy_read

2020-07-07 Thread David Miller
From: t...@redhat.com Date: Fri, 3 Jul 2020 06:33:59 -0700 > From: Tom Rix > > clang static analysis flags this garbage return > > drivers/net/ethernet/marvell/sky2.c:208:2: warning: Undefined or garbage > value returned to caller [core.uninitialized.UndefReturn] > return v; >

Re: [PATCH] net: sky2: initialize return of gm_phy_read

2020-07-03 Thread Andrew Lunn
On Fri, Jul 03, 2020 at 06:33:59AM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis flags this garbage return > > drivers/net/ethernet/marvell/sky2.c:208:2: warning: Undefined or garbage > value returned to caller [core.uninitialized.UndefReturn] > return v; >

[PATCH] net: sky2: initialize return of gm_phy_read

2020-07-03 Thread trix
From: Tom Rix clang static analysis flags this garbage return drivers/net/ethernet/marvell/sky2.c:208:2: warning: Undefined or garbage value returned to caller [core.uninitialized.UndefReturn] return v; ^~~~ static inline u16 gm_phy_read( ... { u16 v; __gm_p