Skip to content

Commit

Permalink
can: c_can: fix remaining checkpatch warnings
Browse files Browse the repository at this point in the history
This patch fixes the remaining checkpatch warnings in the driver.

Link: https://lore.kernel.org/r/20210304154240.2747987-7-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Mar 30, 2021
1 parent 995380f commit dd47750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/net/can/c_can/c_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,8 @@ static u32 c_can_adjust_pending(u32 pend)
/* Find the first set bit after the gap. We walk backwards
* from the last set bit.
*/
for (lasts--; pend & (1 << (lasts - 1)); lasts--);
for (lasts--; pend & (1 << (lasts - 1)); lasts--)
;

return pend & ~((1 << lasts) - 1);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/can/c_can/c_can_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static const struct c_can_pci_data c_can_pch = {

#define C_CAN_ID(_vend, _dev, _driverdata) { \
PCI_DEVICE(_vend, _dev), \
.driver_data = (unsigned long)&_driverdata, \
.driver_data = (unsigned long)&(_driverdata), \
}

static const struct pci_device_id c_can_pci_tbl[] = {
Expand Down

0 comments on commit dd47750

Please sign in to comment.