projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8eb5e5a
)
Change WARN_ON into WARN_ON_ONCE
author
norly
<ny-git@enpas.org>
Sat, 5 Feb 2022 04:58:47 +0000
(
05:58
+0100)
committer
norly
<ny-git@enpas.org>
Sat, 5 Feb 2022 04:58:47 +0000
(
05:58
+0100)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index 6c99ca0a30da520ee11bd690d74a361a3698e4d0..7ae344ef52477aae8b589ddee41db3f8021a9c1e 100644
(file)
--- a/
module/elmcan.c
+++ b/
module/elmcan.c
@@
-788,7
+788,7
@@
static struct sk_buff *elmcan_mailbox_read(struct can_rx_offload *offload,
unsigned int n, u32 *timestamp,
bool drop)
{
unsigned int n, u32 *timestamp,
bool drop)
{
- WARN_ON(1); /* This function is a dummy, so don't call it! */
+ WARN_ON
_ONCE
(1); /* This function is a dummy, so don't call it! */
return ERR_PTR(-ENOBUFS);
}
return ERR_PTR(-ENOBUFS);
}
@@
-891,7
+891,7
@@
static netdev_tx_t elmcan_netdev_start_xmit(struct sk_buff *skb,
/* We shouldn't get here after a hardware fault:
* can_bus_off() calls netif_carrier_off()
*/
/* We shouldn't get here after a hardware fault:
* can_bus_off() calls netif_carrier_off()
*/
- WARN_ON(elm->hw_failure);
+ WARN_ON
_ONCE
(elm->hw_failure);
if (!elm->tty ||
elm->hw_failure ||
if (!elm->tty ||
elm->hw_failure ||