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>
This commit is contained in:
Dan Carpenter 2015-11-21 13:34:12 +03:00 committed by David S. Miller
parent 7d267278a9
commit 3d1a54e801

View 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);
}