OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eccaa9e
)
net: dsa: Utilize dsa_slave_dev_check()
author
Florian Fainelli
<f.fainelli@gmail.com>
Wed, 20 Sep 2017 01:00:37 +0000
(18:00 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 20 Sep 2017 22:49:07 +0000
(15:49 -0700)
Instead of open coding the check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c
patch
|
blob
|
history
diff --git
a/net/dsa/slave.c
b/net/dsa/slave.c
index
d51b104
..
6fc9eb0
100644
(file)
--- a/
net/dsa/slave.c
+++ b/
net/dsa/slave.c
@@
-1294,7
+1294,7
@@
static int dsa_slave_netdevice_event(struct notifier_block *nb,
{
struct net_device *dev = netdev_notifier_info_to_dev(ptr);
- if (
dev->netdev_ops != &dsa_slave_netdev_ops
)
+ if (
!dsa_slave_dev_check(dev)
)
return NOTIFY_DONE;
if (event == NETDEV_CHANGEUPPER)