projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b9272e
)
can: flexcan: flexcan_clks_enable(): add missing variable initialization
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Wed, 28 Jul 2021 07:51:42 +0000
(09:51 +0200)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Wed, 4 Aug 2021 10:11:56 +0000
(12:11 +0200)
This patch adds the missing initialization of the "err" variable in
the flexcan_clks_enable() function.
Fixes:
d9cead75b1c6
("can: flexcan: add mcf5441x support")
Link:
https://lore.kernel.org/r/20210728075428.1493568-1-mkl@pengutronix.de
Reported-by: kernel test robot <lkp@intel.com>
Cc: Angelo Dureghello <angelo@kernel-space.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/flexcan.c
b/drivers/net/can/flexcan.c
index 54ffb796a320e2e4a3a0052d88338a8b4dfe9582..7734229aa0788bdbfbc1930cf9d5fea23a976675 100644
(file)
--- a/
drivers/net/can/flexcan.c
+++ b/
drivers/net/can/flexcan.c
@@
-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);