projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd4b827
)
Fix coverity issue 'Uninitialized scalar variable"
author
Yacov Simhony
<ysimhony@gmail.com>
Sun, 21 Nov 2021 15:02:53 +0000
(17:02 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 22 Nov 2021 14:27:00 +0000
(14:27 +0000)
There are three boolean variable which were not initialized and later
being used in the code.
Signed-off-by: Yacov Simhony <ysimhony@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cadence/macb_main.c
b/drivers/net/ethernet/cadence/macb_main.c
index 7b68f5a1720c4eee079d8ee65d1a97e6e181db78..2c10a3f1cdbb81d3275474faf43dbe3d0cb935a8 100644
(file)
--- a/
drivers/net/ethernet/cadence/macb_main.c
+++ b/
drivers/net/ethernet/cadence/macb_main.c
@@
-513,7
+513,7
@@
static void macb_validate(struct phylink_config *config,
struct net_device *ndev = to_net_dev(config->dev);
__ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
struct macb *bp = netdev_priv(ndev);
- bool have_1g
, have_sgmii, have_10g
;
+ bool have_1g
=false, have_sgmii=false, have_10g=false
;
/* Determine what modes are supported */
if (macb_is_gem(bp) &&