Skip to content

Commit c4247c6

Browse files
henrikbrixandersenkartben
authored andcommitted
drivers: can: mcp2515: terminate if...else if construct with an else
Terminate the if...else if construct with an else block in order to adhere to coding guidelines. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 214b9c5 commit c4247c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/can/can_mcp2515.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,8 @@ static void mcp2515_handle_interrupts(const struct device *dev)
847847
} else if (ret == 0) {
848848
/* All interrupt flags handled */
849849
break;
850+
} else {
851+
/* Interrupts still pending */
850852
}
851853
}
852854
}

0 commit comments

Comments
 (0)