Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix coverity issue 'Uninitialized scalar variable"

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>

authored by

Yacov Simhony and committed by
David S. Miller
ac9f66ff bd4b827c

+1 -1
+1 -1
drivers/net/ethernet/cadence/macb_main.c
··· 513 513 struct net_device *ndev = to_net_dev(config->dev); 514 514 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, }; 515 515 struct macb *bp = netdev_priv(ndev); 516 - bool have_1g, have_sgmii, have_10g; 516 + bool have_1g=false, have_sgmii=false, have_10g=false; 517 517 518 518 /* Determine what modes are supported */ 519 519 if (macb_is_gem(bp) &&