]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Do not check for ethtool_ops validity
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 Apr 2018 19:12:49 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 15:53:02 +0000 (11:53 -0400)
commit0dd9a128e4d07fe0a4f7eccfbc2d3b50e106a5df
tree6df7a0e723412afe4a9c5f561aa69ac052e90c2a
parent2ddcb539c892c3306a8d0df4370639f79180d767
net: dsa: Do not check for ethtool_ops validity

This is completely redundant with what netdev_set_default_ethtool_ops()
does, we are always guaranteed to have a valid dev->ethtool_ops pointer,
however, within that structure, not all function calls may be populated,
so we still have to check them individually.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/master.c