aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-02-17 15:09:59 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-17 15:09:59 -0500
commit48c871c1f6a7c7044dd76774fb469e65c7e2e4e8 (patch)
treeda3aa535c98cc0957851354ceb0fbff7482d7a9d /net/core/net-sysfs.c
parent1a1689344add3333d28d1b5495d8043a3877d01c (diff)
parent4409d28140d9a6e6e3f4f1fdaf7234c4b965d954 (diff)
Merge branch 'gfar' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into upstream
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r--net/core/net-sysfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index cd59ac620092..4cbb1290a6a3 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -2,7 +2,7 @@
2 * net-sysfs.c - network device class and attributes 2 * net-sysfs.c - network device class and attributes
3 * 3 *
4 * Copyright (c) 2003 Stephen Hemminger <shemminger@osdl.org> 4 * Copyright (c) 2003 Stephen Hemminger <shemminger@osdl.org>
5 * 5 *
6 * This program is free software; you can redistribute it and/or 6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License 7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 8 * as published by the Free Software Foundation; either version
@@ -23,7 +23,7 @@ static const char fmt_long_hex[] = "%#lx\n";
23static const char fmt_dec[] = "%d\n"; 23static const char fmt_dec[] = "%d\n";
24static const char fmt_ulong[] = "%lu\n"; 24static const char fmt_ulong[] = "%lu\n";
25 25
26static inline int dev_isalive(const struct net_device *dev) 26static inline int dev_isalive(const struct net_device *dev)
27{ 27{
28 return dev->reg_state <= NETREG_REGISTERED; 28 return dev->reg_state <= NETREG_REGISTERED;
29} 29}
@@ -265,7 +265,7 @@ static ssize_t netstat_show(const struct device *d,
265 265
266 read_lock(&dev_base_lock); 266 read_lock(&dev_base_lock);
267 if (dev_isalive(dev) && dev->get_stats && 267 if (dev_isalive(dev) && dev->get_stats &&
268 (stats = (*dev->get_stats)(dev))) 268 (stats = (*dev->get_stats)(dev)))
269 ret = sprintf(buf, fmt_ulong, 269 ret = sprintf(buf, fmt_ulong,
270 *(unsigned long *)(((u8 *) stats) + offset)); 270 *(unsigned long *)(((u8 *) stats) + offset));
271 271
@@ -349,7 +349,7 @@ static ssize_t wireless_show(struct device *d, char *buf,
349 struct net_device *dev = to_net_dev(d); 349 struct net_device *dev = to_net_dev(d);
350 const struct iw_statistics *iw = NULL; 350 const struct iw_statistics *iw = NULL;
351 ssize_t ret = -EINVAL; 351 ssize_t ret = -EINVAL;
352 352
353 read_lock(&dev_base_lock); 353 read_lock(&dev_base_lock);
354 if (dev_isalive(dev)) { 354 if (dev_isalive(dev)) {
355 if(dev->wireless_handlers && 355 if(dev->wireless_handlers &&
@@ -430,7 +430,7 @@ static int netdev_uevent(struct device *d, char **envp,
430#endif 430#endif
431 431
432/* 432/*
433 * netdev_release -- destroy and free a dead device. 433 * netdev_release -- destroy and free a dead device.
434 * Called when last reference to device kobject is gone. 434 * Called when last reference to device kobject is gone.
435 */ 435 */
436static void netdev_release(struct device *d) 436static void netdev_release(struct device *d)