diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-02-09 09:24:29 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-11 02:19:16 -0500 |
commit | f7d57453d20e27de69ecafd121005e9d13a0f427 (patch) | |
tree | 68fc3b10116cbd4e20411a08fd7f6cc2510c3442 /net/atm/atm_sysfs.c | |
parent | ed4477b96049fe2908c63f854bf8e37c6df4a635 (diff) |
[NET] ATM: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/atm_sysfs.c')
-rw-r--r-- | net/atm/atm_sysfs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/atm/atm_sysfs.c b/net/atm/atm_sysfs.c index 62f6ed1f2f98..f094a0879c16 100644 --- a/net/atm/atm_sysfs.c +++ b/net/atm/atm_sysfs.c | |||
@@ -30,15 +30,15 @@ static ssize_t show_address(struct class_device *cdev, char *buf) | |||
30 | 30 | ||
31 | static ssize_t show_atmaddress(struct class_device *cdev, char *buf) | 31 | static ssize_t show_atmaddress(struct class_device *cdev, char *buf) |
32 | { | 32 | { |
33 | unsigned long flags; | 33 | unsigned long flags; |
34 | char *pos = buf; | 34 | char *pos = buf; |
35 | struct atm_dev *adev = to_atm_dev(cdev); | 35 | struct atm_dev *adev = to_atm_dev(cdev); |
36 | struct atm_dev_addr *aaddr; | 36 | struct atm_dev_addr *aaddr; |
37 | int bin[] = { 1, 2, 10, 6, 1 }, *fmt = bin; | 37 | int bin[] = { 1, 2, 10, 6, 1 }, *fmt = bin; |
38 | int i, j; | 38 | int i, j; |
39 | 39 | ||
40 | spin_lock_irqsave(&adev->lock, flags); | 40 | spin_lock_irqsave(&adev->lock, flags); |
41 | list_for_each_entry(aaddr, &adev->local, entry) { | 41 | list_for_each_entry(aaddr, &adev->local, entry) { |
42 | for(i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { | 42 | for(i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { |
43 | if (j == *fmt) { | 43 | if (j == *fmt) { |
44 | pos += sprintf(pos, "."); | 44 | pos += sprintf(pos, "."); |
@@ -49,7 +49,7 @@ static ssize_t show_atmaddress(struct class_device *cdev, char *buf) | |||
49 | } | 49 | } |
50 | pos += sprintf(pos, "\n"); | 50 | pos += sprintf(pos, "\n"); |
51 | } | 51 | } |
52 | spin_unlock_irqrestore(&adev->lock, flags); | 52 | spin_unlock_irqrestore(&adev->lock, flags); |
53 | 53 | ||
54 | return pos - buf; | 54 | return pos - buf; |
55 | } | 55 | } |
@@ -61,7 +61,7 @@ static ssize_t show_carrier(struct class_device *cdev, char *buf) | |||
61 | 61 | ||
62 | pos += sprintf(pos, "%d\n", | 62 | pos += sprintf(pos, "%d\n", |
63 | adev->signal == ATM_PHY_SIG_LOST ? 0 : 1); | 63 | adev->signal == ATM_PHY_SIG_LOST ? 0 : 1); |
64 | 64 | ||
65 | return pos - buf; | 65 | return pos - buf; |
66 | } | 66 | } |
67 | 67 | ||
@@ -86,7 +86,7 @@ static ssize_t show_link_rate(struct class_device *cdev, char *buf) | |||
86 | link_rate = adev->link_rate * 8 * 53; | 86 | link_rate = adev->link_rate * 8 * 53; |
87 | } | 87 | } |
88 | pos += sprintf(pos, "%d\n", link_rate); | 88 | pos += sprintf(pos, "%d\n", link_rate); |
89 | 89 | ||
90 | return pos - buf; | 90 | return pos - buf; |
91 | } | 91 | } |
92 | 92 | ||