]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
can: kvaser_pciefd: Add inline
authorMartin Jocic <martin.jocic@kvaser.com>
Fri, 14 Jun 2024 15:15:21 +0000 (17:15 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 21 Jun 2024 07:45:27 +0000 (09:45 +0200)
Make the short function kvaser_pciefd_set_tx_irq inline. This function
is effectively three lines long and therefore inlining it should be
OK according to rule #15 of the Linux kernel coding style.

Signed-off-by: Martin Jocic <martin.jocic@kvaser.com>
Link: https://lore.kernel.org/all/20240614151524.2718287-5-martin.jocic@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/kvaser_pciefd.c

index 8c9abc702b24a1f744861f118a4645a02d52f3f1..3d40d7b3d64c46639b273363f17b669f0fd2a137 100644 (file)
@@ -550,7 +550,7 @@ static void kvaser_pciefd_disable_err_gen(struct kvaser_pciefd_can *can)
        spin_unlock_irqrestore(&can->lock, irq);
 }
 
-static void kvaser_pciefd_set_tx_irq(struct kvaser_pciefd_can *can)
+static inline void kvaser_pciefd_set_tx_irq(struct kvaser_pciefd_can *can)
 {
        u32 msk;