Fix coverity issue 'Uninitialized scalar variable"
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/cadence/macb_main.c +1 -1
@@ -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) &&
Signature · 1 line
2.7.4
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 7 lines · On Sun, 21 Nov 2021 17:02:53 +0200 you wrote:
There are three boolean variable which were not initialized and later being used in the code.
Signed-off-by Yacov Simhony <[email protected]>--- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- Fix coverity issue 'Uninitialized scalar variable"
https://git.kernel.org/netdev/net-next/c/ac9f66ff04a9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html