Commit 73042934 authored by Markus Schneider-Pargmann's avatar Markus Schneider-Pargmann Committed by Marc Kleine-Budde
Browse files

can: m_can: Remove repeated check for is_peripheral

parent a57915ae
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1592,10 +1592,8 @@ static int m_can_close(struct net_device *dev)
		cdev->tx_skb = NULL;
		destroy_workqueue(cdev->tx_wq);
		cdev->tx_wq = NULL;
	}

	if (cdev->is_peripheral)
		can_rx_offload_disable(&cdev->offload);
	}

	close_candev(dev);