diff options
author | 2022-01-15 09:49:18 -0800 | |
---|---|---|
committer | 2022-01-15 22:33:17 +0000 | |
commit | 214b3369ab9b0a6f28d6c970220c209417edbc65 (patch) | |
tree | b673945c3500d3657d349d6a607345a2febb66dc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: mscc: ocelot: don't dereference NULL pointers with shared tc filters (diff) | |
download | linux-dev-214b3369ab9b0a6f28d6c970220c209417edbc65.tar.xz linux-dev-214b3369ab9b0a6f28d6c970220c209417edbc65.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions