Skip to content

Commit 183e0f8

Browse files
henrikbrixandersennashif
authored andcommitted
drivers: can: sam0: remove unused variable
Remove unused variable (only ever assigned) from the Atmel SAM0 CAN driver. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 29bcc34 commit 183e0f8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/can/can_sam0.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ static int can_sam0_write_reg(const struct device *dev, uint16_t reg, uint32_t v
4545
{
4646
const struct can_mcan_config *mcan_config = dev->config;
4747
const struct can_sam0_config *sam_config = mcan_config->custom;
48-
uint32_t bits = 0U;
4948

5049
switch (reg) {
5150
case CAN_MCAN_ILS:
@@ -58,7 +57,6 @@ static int can_sam0_write_reg(const struct device *dev, uint16_t reg, uint32_t v
5857
break;
5958
default:
6059
/* No field remap needed */
61-
bits = val;
6260
break;
6361
};
6462

0 commit comments

Comments
 (0)