diff options
author | Joe Perches <joe@perches.com> | 2010-01-26 11:40:03 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-26 21:15:57 -0800 |
commit | f0a6cb118d7f9e72799a9c0c13f75d1b236a6546 (patch) | |
tree | 2a09aea2c483abc53cf021d28081d0694a599f78 /net | |
parent | 3356b4d41605f9b0977b0963c65f466eee213fe9 (diff) | |
download | kernel_samsung_aries-f0a6cb118d7f9e72799a9c0c13f75d1b236a6546.zip kernel_samsung_aries-f0a6cb118d7f9e72799a9c0c13f75d1b236a6546.tar.gz kernel_samsung_aries-f0a6cb118d7f9e72799a9c0c13f75d1b236a6546.tar.bz2 |
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')
-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 b5674dc..f693b78 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, spin_lock_irqsave(&adev->lock, flags); list_for_each_entry(aaddr, &adev->local, entry) { - for(i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { + for (i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { if (j == *fmt) { pos += sprintf(pos, "."); ++fmt; j = 0; } - pos += sprintf(pos, "%02x", aaddr->addr.sas_addr.prv[i]); + pos += sprintf(pos, "%02x", + aaddr->addr.sas_addr.prv[i]); } pos += sprintf(pos, "\n"); } @@ -78,17 +79,17 @@ static ssize_t show_link_rate(struct device *cdev, /* show the link rate, not the data rate */ switch (adev->link_rate) { - case ATM_OC3_PCR: - link_rate = 155520000; - break; - case ATM_OC12_PCR: - link_rate = 622080000; - break; - case ATM_25_PCR: - link_rate = 25600000; - break; - default: - link_rate = adev->link_rate * 8 * 53; + case ATM_OC3_PCR: + link_rate = 155520000; + break; + case ATM_OC12_PCR: + link_rate = 622080000; + break; + case ATM_25_PCR: + link_rate = 25600000; + break; + default: + link_rate = adev->link_rate * 8 * 53; } pos += sprintf(pos, "%d\n", link_rate); |