net/hsr: fix a warning message
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 21 Nov 2015 10:34:12 +0000 (13:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2015 19:56:15 +0000 (14:56 -0500)
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>
net/hsr/hsr_device.c

index 35a9788bb3ae734d8e5b2f5199901a6c47f7a587..c7d1adca30d891b183b0832712e0d57aa1f33201 100644 (file)
@@ -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);
 }