OSDN Git Service

hsr: use netdev_err() instead of WARN_ONCE()
authorTaehee Yoo <ap420073@gmail.com>
Fri, 28 Feb 2020 18:01:46 +0000 (18:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2020 05:37:03 +0000 (21:37 -0800)
commit4b793acdca0050739b99ace6a8b9e7f717f57c6b
tree16fcb5ddb4723391340c0dbc037a4b391e1b0d05
parent13eeb5fea68e11765020b846ef692809c5fe04aa
hsr: use netdev_err() instead of WARN_ONCE()

When HSR interface is sending a frame, it finds a node with
the destination ethernet address from the list.
If there is no node, it calls WARN_ONCE().
But, using WARN_ONCE() for this situation is a little bit overdoing.
So, in this patch, the netdev_err() is used instead.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/hsr/hsr_framereg.c