From: Dan Carpenter Date: Sat, 21 Nov 2015 10:34:12 +0000 (+0300) Subject: net/hsr: fix a warning message X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3d1a54e801b661fdc7a409cfc350b6ee555e00fc;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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); }