summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/flexcan.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2021-07-28 09:51:42 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-08-04 12:11:56 +0200
commit3362666972137724496984b4db2b06071aca4b69 (patch)
tree4b45e86be15812934069575ca807c1ae2c31fbbc /drivers/net/can/flexcan.c
parent5b9272e93f2efe3f6cda60cc2c26817b2ce49386 (diff)
downloadlinux-3362666972137724496984b4db2b06071aca4b69.tar.gz
linux-3362666972137724496984b4db2b06071aca4b69.tar.bz2
linux-3362666972137724496984b4db2b06071aca4b69.zip
can: flexcan: flexcan_clks_enable(): add missing variable initialization
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>
Diffstat (limited to 'drivers/net/can/flexcan.c')
-rw-r--r--drivers/net/can/flexcan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 54ffb796a320..7734229aa078 100644
--- 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);