Commit d1390d7d authored by Sean Nyekjaer's avatar Sean Nyekjaer Committed by Marc Kleine-Budde

can: tcan4x5x: tcan4x5x_clear_interrupts(): remove redundant return statement

This patch removes a redundant return at the end of
tcan4x5x_clear_interrupts().
Signed-off-by: default avatarSean Nyekjaer <sean@geanix.com>
Link: http://lore.kernel.org/r/20191211141635.322577-1-sean@geanix.comReported-by: default avatarDaniels Umanovskis <daniels@umanovskis.se>
Acked-by: default avatarDan Murphy <dmurphy@ti.com>
Fixes: 5443c226 ("can: tcan4x5x: Add tcan4x5x driver to the kernel")
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 68c0c1c7
...@@ -328,12 +328,8 @@ static int tcan4x5x_clear_interrupts(struct m_can_classdev *cdev) ...@@ -328,12 +328,8 @@ static int tcan4x5x_clear_interrupts(struct m_can_classdev *cdev)
if (ret) if (ret)
return ret; return ret;
ret = tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_ERROR_STATUS, return tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_ERROR_STATUS,
TCAN4X5X_CLEAR_ALL_INT); TCAN4X5X_CLEAR_ALL_INT);
if (ret)
return ret;
return ret;
} }
static int tcan4x5x_init(struct m_can_classdev *cdev) static int tcan4x5x_init(struct m_can_classdev *cdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment