mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
can: m_can: fix coding style
This patch aligns code to match open parenthesis and removes a trailing whitespace. Fixes:eb38c2053b
("can: rx-offload: rename can_rx_offload_queue_sorted() -> can_rx_offload_queue_timestamp()") Fixes:f5071d9e72
("can: m_can: m_can_handle_bus_errors(): add support for handling DLEC error on CAN-FD frames") Reported-by: Judith Mendez <jm@ti.com> Link: https://lore.kernel.org/all/20230523062410.1984098-1-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
0476980232
commit
3d68f116cc
@ -469,7 +469,7 @@ static void m_can_receive_skb(struct m_can_classdev *cdev,
|
||||
int err;
|
||||
|
||||
err = can_rx_offload_queue_timestamp(&cdev->offload, skb,
|
||||
timestamp);
|
||||
timestamp);
|
||||
if (err)
|
||||
stats->rx_fifo_errors++;
|
||||
} else {
|
||||
@ -895,7 +895,7 @@ static int m_can_handle_bus_errors(struct net_device *dev, u32 irqstatus,
|
||||
netdev_dbg(dev, "Arbitration phase error detected\n");
|
||||
work_done += m_can_handle_lec_err(dev, lec);
|
||||
}
|
||||
|
||||
|
||||
if (is_lec_err(dlec)) {
|
||||
netdev_dbg(dev, "Data phase error detected\n");
|
||||
work_done += m_can_handle_lec_err(dev, dlec);
|
||||
|
Loading…
Reference in New Issue
Block a user