Skip to content

Commit

Permalink
can: xilinx_can: fix checkpatch warnings
Browse files Browse the repository at this point in the history
This patch fixes several checkpatch warnings.

Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
marckleinebudde committed Nov 11, 2019
1 parent 2b1a454 commit b687a77
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions drivers/net/can/xilinx_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct xcan_devtype_data {
*/
struct xcan_priv {
struct can_priv can;
spinlock_t tx_lock;
spinlock_t tx_lock; /* Lock for synchronizing TX interrupt handling */
unsigned int tx_head;
unsigned int tx_tail;
unsigned int tx_max;
Expand Down Expand Up @@ -400,7 +400,7 @@ static int xcan_set_bittiming(struct net_device *ndev)
XCAN_SR_CONFIG_MASK;
if (!is_config_mode) {
netdev_alert(ndev,
"BUG! Cannot set bittiming - CAN is not in config mode\n");
"BUG! Cannot set bittiming - CAN is not in config mode\n");
return -EPERM;
}

Expand Down Expand Up @@ -482,11 +482,10 @@ static int xcan_chip_start(struct net_device *ndev)
priv->write_reg(priv, XCAN_IER_OFFSET, ier);

/* Check whether it is loopback mode or normal mode */
if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) {
if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)
reg_msr = XCAN_MSR_LBACK_MASK;
} else {
else
reg_msr = 0x0;
}

/* enable the first extended filter, if any, as cores with extended
* filtering default to non-receipt if all filters are disabled
Expand Down

0 comments on commit b687a77

Please sign in to comment.