diff options
author | Joe Perches <joe@perches.com> | 2010-01-26 06:40:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-27 00:15:57 -0500 |
commit | f0a6cb118d7f9e72799a9c0c13f75d1b236a6546 (patch) | |
tree | 2a09aea2c483abc53cf021d28081d0694a599f78 /net/atm/atm_sysfs.c | |
parent | 3356b4d41605f9b0977b0963c65f466eee213fe9 (diff) |
net/atm/atm_sysfs.c: checkpatch cleanups
Add space after for
Indent switch/case statements
80 column wrapping
Signed-off-by: Joe Perches <joe@perches.com>
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 | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/net/atm/atm_sysfs.c b/net/atm/atm_sysfs.c index b5674dc2083d..f693b78eb467 100644 --- a/net/atm/atm_sysfs.c +++ b/net/atm/atm_sysfs.c | |||
@@ -42,13 +42,14 @@ static ssize_t show_atmaddress(struct device *cdev, | |||
42 | 42 | ||
43 | spin_lock_irqsave(&adev->lock, flags); | 43 | spin_lock_irqsave(&adev->lock, flags); |
44 | list_for_each_entry(aaddr, &adev->local, entry) { | 44 | list_for_each_entry(aaddr, &adev->local, entry) { |
45 | for(i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { | 45 | for (i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { |
46 | if (j == *fmt) { | 46 | if (j == *fmt) { |
47 | pos += sprintf(pos, "."); | 47 | pos += sprintf(pos, "."); |
48 | ++fmt; | 48 | ++fmt; |
49 | j = 0; | 49 | j = 0; |
50 | } | 50 | } |
51 | pos += sprintf(pos, "%02x", aaddr->addr.sas_addr.prv[i]); | 51 | pos += sprintf(pos, "%02x", |
52 | aaddr->addr.sas_addr.prv[i]); | ||
52 | } | 53 | } |
53 | pos += sprintf(pos, "\n"); | 54 | pos += sprintf(pos, "\n"); |
54 | } | 55 | } |
@@ -78,17 +79,17 @@ static ssize_t show_link_rate(struct device *cdev, | |||
78 | 79 | ||
79 | /* show the link rate, not the data rate */ | 80 | /* show the link rate, not the data rate */ |
80 | switch (adev->link_rate) { | 81 | switch (adev->link_rate) { |
81 | case ATM_OC3_PCR: | 82 | case ATM_OC3_PCR: |
82 | link_rate = 155520000; | 83 | link_rate = 155520000; |
83 | break; | 84 | break; |
84 | case ATM_OC12_PCR: | 85 | case ATM_OC12_PCR: |
85 | link_rate = 622080000; | 86 | link_rate = 622080000; |
86 | break; | 87 | break; |
87 | case ATM_25_PCR: | 88 | case ATM_25_PCR: |
88 | link_rate = 25600000; | 89 | link_rate = 25600000; |
89 | break; | 90 | break; |
90 | default: | 91 | default: |
91 | link_rate = adev->link_rate * 8 * 53; | 92 | link_rate = adev->link_rate * 8 * 53; |
92 | } | 93 | } |
93 | pos += sprintf(pos, "%d\n", link_rate); | 94 | pos += sprintf(pos, "%d\n", link_rate); |
94 | 95 | ||