mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
can: m_can: m_can_tx_submit(): remove unneeded sanity checks
m_can_tx_submit() is only called for peripheral devices. So remove the sanity check. Link: https://patch.msgid.link/20251008-m_can-cleanups-v1-6-1784a18eaa84@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
6218391758
commit
b24b43522e
|
|
@ -1973,11 +1973,6 @@ static netdev_tx_t m_can_tx_handler(struct m_can_classdev *cdev,
|
|||
|
||||
static void m_can_tx_submit(struct m_can_classdev *cdev)
|
||||
{
|
||||
if (cdev->version == 30)
|
||||
return;
|
||||
if (!cdev->is_peripheral)
|
||||
return;
|
||||
|
||||
m_can_write(cdev, M_CAN_TXBAR, cdev->tx_peripheral_submit);
|
||||
cdev->tx_peripheral_submit = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user