Skip to content

Commit

Permalink
can: flexcan: flexcan_clks_enable(): add missing variable initialization
Browse files Browse the repository at this point in the history
This patch adds the missing initialization of the "err" variable in
the flexcan_clks_enable() function.

Fixes: d9cead7 ("can: flexcan: add mcf5441x support")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: kernel test robot <[email protected]>
Cc: Angelo Dureghello <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
marckleinebudde committed Aug 4, 2021
1 parent 5b9272e commit 3362666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/flexcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ static inline void flexcan_error_irq_disable(const struct flexcan_priv *priv)

static int flexcan_clks_enable(const struct flexcan_priv *priv)
{
int err;
int err = 0;

if (priv->clk_ipg) {
err = clk_prepare_enable(priv->clk_ipg);
Expand Down

0 comments on commit 3362666

Please sign in to comment.