diff options
Diffstat (limited to 'net/core/net-sysfs.c')
| -rw-r--r-- | net/core/net-sysfs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 47a6fceb6771..f47f319bb7dc 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/capability.h> | 12 | #include <linux/capability.h> |
| 13 | #include <linux/config.h> | ||
| 14 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
| 15 | #include <linux/netdevice.h> | 14 | #include <linux/netdevice.h> |
| 16 | #include <linux/if_arp.h> | 15 | #include <linux/if_arp.h> |
| @@ -345,8 +344,6 @@ static ssize_t wireless_show(struct class_device *cd, char *buf, | |||
| 345 | if(dev->wireless_handlers && | 344 | if(dev->wireless_handlers && |
| 346 | dev->wireless_handlers->get_wireless_stats) | 345 | dev->wireless_handlers->get_wireless_stats) |
| 347 | iw = dev->wireless_handlers->get_wireless_stats(dev); | 346 | iw = dev->wireless_handlers->get_wireless_stats(dev); |
| 348 | else if (dev->get_wireless_stats) | ||
| 349 | iw = dev->get_wireless_stats(dev); | ||
| 350 | if (iw != NULL) | 347 | if (iw != NULL) |
| 351 | ret = (*format)(iw, buf); | 348 | ret = (*format)(iw, buf); |
| 352 | } | 349 | } |
| @@ -466,8 +463,7 @@ int netdev_register_sysfs(struct net_device *net) | |||
| 466 | *groups++ = &netstat_group; | 463 | *groups++ = &netstat_group; |
| 467 | 464 | ||
| 468 | #ifdef WIRELESS_EXT | 465 | #ifdef WIRELESS_EXT |
| 469 | if (net->get_wireless_stats | 466 | if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats) |
| 470 | || (net->wireless_handlers && net->wireless_handlers->get_wireless_stats)) | ||
| 471 | *groups++ = &wireless_group; | 467 | *groups++ = &wireless_group; |
| 472 | #endif | 468 | #endif |
| 473 | 469 | ||
