Skip to content

Commit

Permalink
can: tcan4x5x: tcan4x5x_clear_interrupts(): remove redundant return s…
Browse files Browse the repository at this point in the history
…tatement

This patch removes a redundant return at the end of
tcan4x5x_clear_interrupts().

Signed-off-by: Sean Nyekjaer <[email protected]>
Link: http://lore.kernel.org/r/[email protected]
Reported-by: Daniels Umanovskis <[email protected]>
Acked-by: Dan Murphy <[email protected]>
Fixes: 5443c22 ("can: tcan4x5x: Add tcan4x5x driver to the kernel")
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
sknsean authored and marckleinebudde committed Nov 29, 2020
1 parent 68c0c1c commit d1390d7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/net/can/m_can/tcan4x5x.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,8 @@ static int tcan4x5x_clear_interrupts(struct m_can_classdev *cdev)
if (ret)
return ret;

ret = tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_ERROR_STATUS,
TCAN4X5X_CLEAR_ALL_INT);
if (ret)
return ret;

return ret;
return tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_ERROR_STATUS,
TCAN4X5X_CLEAR_ALL_INT);
}

static int tcan4x5x_init(struct m_can_classdev *cdev)
Expand Down

0 comments on commit d1390d7

Please sign in to comment.