aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ping.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-07-03 06:33:59 -0700
committerDavid S. Miller <davem@davemloft.net>2020-07-07 15:23:53 -0700
commit28b18e4eb515af7c6661c3995c6e3c34412c2874 (patch)
treee82379eabdc7c5c1eef9296ef6d10b38d17b8db9 /net/ipv4/ping.c
parentcgroup: fix cgroup_sk_alloc() for sk_clone_lock() (diff)
downloadlinux-dev-28b18e4eb515af7c6661c3995c6e3c34412c2874.tar.xz
linux-dev-28b18e4eb515af7c6661c3995c6e3c34412c2874.zip
net: sky2: initialize return of gm_phy_read
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_phy_read(hw, port, reg, &v); return v; } __gm_phy_read can return without setting v. So handle similar to skge.c's gm_phy_read, initialize v. Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ping.c')
0 files changed, 0 insertions, 0 deletions