]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit22d00fee64ece98c8ce9e8c987bc95f8534d51c8
tree16fcb5ddb4723391340c0dbc037a4b391e1b0d05
parentaec9c2a51e7ed301c8b9187c81633795cfbe4f8f
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