sunhme: Uninitialized variable in happy_meal_init()
PATCH 1/1 sunhme: Uninitialized variable in happy_meal_init()
The "burst" string is only initialized for CONFIG_SPARC.
Fixes 24cddbc3ef11 ("sunhme: Combine continued messages")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/net/ethernet/sun/sunhme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sun/sunhme.c +1 -1
@@ -1328,7 +1328,7 @@ static int happy_meal_init(struct happy_meal *hp)void __iomem *erxregs = hp->erxregs;void __iomem *bregs = hp->bigmacregs;void __iomem *tregs = hp->tcvregs; -const char *bursts; +const char *bursts ="" ;u32 regtmp, rxcfg;/* If auto-negotiation timer is running, kill it. */
Signature · 1 line
2.35.1
Sean Anderson
maintainerQuoted 13 lines · Dan Carpenter
The "burst" string is only initialized for
CONFIG_SPARC.Fixes 24cddbc3ef11 ("sunhme: Combine continued messages")Signed-off-by Dan Carpenter <[email protected]>--- drivers/net/ethernet/sun/sunhme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/sun/sunhme.c +0
-0
drivers/net/ethernet/sun/sunhme.c static int happy_meal_init(struct happy_meal *hp) · line 1334
Quoted 8 lines
drivers/net/ethernet/sun/sunhme.c +1
-1@@ -1328,7 +1328,7 @@ static int happy_meal_init(struct happy_meal *hp)void __iomem *erxregs = hp->erxregs;void __iomem *bregs = hp->bigmacregs;void __iomem *tregs = hp->tcvregs; -const char *bursts; +const char *bursts ="" ;u32 regtmp, rxcfg;/* If auto-negotiation timer is running, kill it. */
This should be "64" to match the value used by PCI.
--Sean