summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-11-21 13:34:12 +0300
committerDavid S. Miller <davem@davemloft.net>2015-11-23 14:56:15 -0500
commit3d1a54e801b661fdc7a409cfc350b6ee555e00fc (patch)
treef25bf4d312f706df35abb2783d5e73fa053884b3 /net
parent7d267278a9ece963d77eefec61630223fce08c6c (diff)
downloadop-kernel-dev-3d1a54e801b661fdc7a409cfc350b6ee555e00fc.zip
op-kernel-dev-3d1a54e801b661fdc7a409cfc350b6ee555e00fc.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/hsr/hsr_device.c b/net/hsr/hsr_device.c
index 35a9788..c7d1adc 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);
}
OpenPOWER on IntegriCloud