Skip to content

Commit 727fba7

Browse files
can: mcp25xxfd: mcp25xxfd_irq(): add missing initialization of variable set_normal mode
This patch fixes the following warning: drivers/net/can/spi/mcp25xxfd/mcp25xxfd-core.c:2155 mcp25xxfd_irq() error: uninitialized symbol 'set_normal_mode'. by adding the missing initialization. Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Fixes: 55e5b97 ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 8cffc6f commit 727fba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/can/spi/mcp25xxfd/mcp25xxfd-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ static irqreturn_t mcp25xxfd_irq(int irq, void *dev_id)
20802080

20812081
do {
20822082
u32 intf_pending, intf_pending_clearable;
2083-
bool set_normal_mode;
2083+
bool set_normal_mode = false;
20842084

20852085
err = regmap_bulk_read(priv->map_reg, MCP25XXFD_REG_INT,
20862086
&priv->regs_status,

0 commit comments

Comments
 (0)