]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove duplicate code.
authorMahesh Bandewar <maheshb@google.com>
Wed, 18 Jan 2017 23:02:49 +0000 (15:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 17:22:25 +0000 (12:22 -0500)
commit29ab00ba01094e0c8f59ef1d879e57da1e6fb1c2
treefce5cccf4992d44ea8c74986c8c21123e5d6f687
parentd16b7a72779de8a64e12ceda6ae3eb63d58b4c71
net: remove duplicate code.

netdev_rx_handler_register() checks to see if the handler is already
busy which was recently separated into netdev_is_rx_handler_busy(). So
use the same function inside register() to avoid code duplication.
Essentially this change should be a no-op

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c