mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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:
parent
7d267278a9
commit
3d1a54e801
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user