Skip to content

Commit

Permalink
drivers: can: sam0: remove unused variable
Browse files Browse the repository at this point in the history
Remove unused variable (only ever assigned) from the Atmel SAM0 CAN driver.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information
henrikbrixandersen authored and nashif committed May 28, 2023
1 parent 29bcc34 commit 183e0f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/can/can_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ static int can_sam0_write_reg(const struct device *dev, uint16_t reg, uint32_t v
{
const struct can_mcan_config *mcan_config = dev->config;
const struct can_sam0_config *sam_config = mcan_config->custom;
uint32_t bits = 0U;

switch (reg) {
case CAN_MCAN_ILS:
Expand All @@ -58,7 +57,6 @@ static int can_sam0_write_reg(const struct device *dev, uint16_t reg, uint32_t v
break;
default:
/* No field remap needed */
bits = val;
break;
};

Expand Down

0 comments on commit 183e0f8

Please sign in to comment.