summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/allwinner
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-01-15 20:49:18 +0300
committerDavid S. Miller <davem@davemloft.net>2022-01-16 01:33:17 +0300
commit214b3369ab9b0a6f28d6c970220c209417edbc65 (patch)
treeb673945c3500d3657d349d6a607345a2febb66dc /drivers/net/ethernet/allwinner
parent80f15f3bef9e9c2cc29888a6773df44de0a0c65f (diff)
downloadlinux-214b3369ab9b0a6f28d6c970220c209417edbc65.tar.xz
net: ethernet: mtk_eth_soc: fix error checking in mtk_mac_config()
Clang static analysis reports this problem mtk_eth_soc.c:394:7: warning: Branch condition evaluates to a garbage value if (err) ^~~ err is not initialized and only conditionally set. So intitialize err. Fixes: 7e538372694b ("net: ethernet: mediatek: Re-add support SGMII") Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/allwinner')
0 files changed, 0 insertions, 0 deletions