Skip to content

Commit

Permalink
net/hsr: fix a warning message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Nov 23, 2015
1 parent 7d26727 commit 3d1a54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/hsr/hsr_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3d1a54e

Please sign in to comment.