OpenCloudOS-Kernel/drivers/net/ethernet/mediatek
Tom Rix 214b3369ab 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: 7e53837269 ("net: ethernet: mediatek: Re-add support SGMII")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-01-15 22:33:17 +00:00
..
Kconfig net: mtk_eth: add COMPILE_TEST support 2021-12-13 15:07:40 +00:00
Makefile net: ethernet: mtk_eth_soc: add flow offloading support 2021-03-24 12:48:40 -07:00
mtk_eth_path.c net: mtk_eth: simplify the mediatek code return expression 2020-12-14 17:51:26 -08:00
mtk_eth_soc.c net: ethernet: mtk_eth_soc: fix error checking in mtk_mac_config() 2022-01-15 22:33:17 +00:00
mtk_eth_soc.h net: ethernet: mtk_eth_soc: implement Clause 45 MDIO access 2022-01-05 11:22:17 +00:00
mtk_ppe.c net: ethernet: mediatek: ppe: fix busy wait loop 2021-04-16 15:24:18 -07:00
mtk_ppe.h net: ethernet: mediatek: ppe: fix busy wait loop 2021-04-16 15:24:18 -07:00
mtk_ppe_debugfs.c net: ethernet: mtk_eth_soc: delete some dead code 2021-12-17 19:24:38 -08:00
mtk_ppe_offload.c net: ethernet: mtk_eth_soc: avoid creating duplicate offload entries 2021-09-23 13:14:19 +01:00
mtk_ppe_regs.h net: ethernet: mtk_eth_soc: add support for initializing the PPE 2021-03-24 12:48:39 -07:00
mtk_sgmii.c net: mediatek: remove unneeded semicolon 2019-10-28 16:36:24 -07:00
mtk_star_emac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00