diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-11-21 13:34:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 22:56:15 +0300 |
commit | 3d1a54e801b661fdc7a409cfc350b6ee555e00fc (patch) | |
tree | f25bf4d312f706df35abb2783d5e73fa053884b3 /net | |
parent | 7d267278a9ece963d77eefec61630223fce08c6c (diff) | |
download | linux-3d1a54e801b661fdc7a409cfc350b6ee555e00fc.tar.xz |
net/hsr: fix a warning message
WARN_ON_ONCE() takes a condition, it doesn't take an error message. I
have converted this to WARN() instead.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/hsr/hsr_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/hsr/hsr_device.c b/net/hsr/hsr_device.c index 35a9788bb3ae..c7d1adca30d8 100644 --- a/net/hsr/hsr_device.c +++ b/net/hsr/hsr_device.c @@ -312,7 +312,7 @@ static void send_hsr_supervision_frame(struct hsr_port *master, u8 type) return; out: - WARN_ON_ONCE("HSR: Could not send supervision frame\n"); + WARN_ONCE(1, "HSR: Could not send supervision frame\n"); kfree_skb(skb); } |