Skip to content

Commit

Permalink
can: mcp25xxfd: mcp25xxfd_irq(): add missing initialization of variab…
Browse files Browse the repository at this point in the history
…le 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 <dan.carpenter@oracle.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fixes: 55e5b97 ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN")
Link: https://lore.kernel.org/r/20200923114726.2704426-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Sep 30, 2020
1 parent 8cffc6f commit 727fba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/spi/mcp25xxfd/mcp25xxfd-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ static irqreturn_t mcp25xxfd_irq(int irq, void *dev_id)

do {
u32 intf_pending, intf_pending_clearable;
bool set_normal_mode;
bool set_normal_mode = false;

err = regmap_bulk_read(priv->map_reg, MCP25XXFD_REG_INT,
&priv->regs_status,
Expand Down

0 comments on commit 727fba7

Please sign in to comment.