Commit dd477500 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: c_can: fix remaining checkpatch warnings

This patch fixes the remaining checkpatch warnings in the driver.

Link: https://lore.kernel.org/r/20210304154240.2747987-7-mkl@pengutronix.deSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 995380f3
...@@ -753,7 +753,8 @@ static u32 c_can_adjust_pending(u32 pend) ...@@ -753,7 +753,8 @@ static u32 c_can_adjust_pending(u32 pend)
/* Find the first set bit after the gap. We walk backwards /* Find the first set bit after the gap. We walk backwards
* from the last set bit. * from the last set bit.
*/ */
for (lasts--; pend & (1 << (lasts - 1)); lasts--); for (lasts--; pend & (1 << (lasts - 1)); lasts--)
;
return pend & ~((1 << lasts) - 1); return pend & ~((1 << lasts) - 1);
} }
......
...@@ -267,7 +267,7 @@ static const struct c_can_pci_data c_can_pch = { ...@@ -267,7 +267,7 @@ static const struct c_can_pci_data c_can_pch = {
#define C_CAN_ID(_vend, _dev, _driverdata) { \ #define C_CAN_ID(_vend, _dev, _driverdata) { \
PCI_DEVICE(_vend, _dev), \ PCI_DEVICE(_vend, _dev), \
.driver_data = (unsigned long)&_driverdata, \ .driver_data = (unsigned long)&(_driverdata), \
} }
static const struct pci_device_id c_can_pci_tbl[] = { static const struct pci_device_id c_can_pci_tbl[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment