]> Git Repo - linux.git/commitdiff
net/hsr: fix a warning message
authorDan Carpenter <[email protected]>
Sat, 21 Nov 2015 10:34:12 +0000 (13:34 +0300)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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);
 }
 
This page took 0.056725 seconds and 4 git commands to generate.