Commit f0a6cb11 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net/atm/atm_sysfs.c: checkpatch cleanups

Add space after for
Indent switch/case statements
80 column wrapping
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3356b4d4
...@@ -42,13 +42,14 @@ static ssize_t show_atmaddress(struct device *cdev, ...@@ -42,13 +42,14 @@ static ssize_t show_atmaddress(struct device *cdev,
spin_lock_irqsave(&adev->lock, flags); spin_lock_irqsave(&adev->lock, flags);
list_for_each_entry(aaddr, &adev->local, entry) { 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) { if (j == *fmt) {
pos += sprintf(pos, "."); pos += sprintf(pos, ".");
++fmt; ++fmt;
j = 0; 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"); pos += sprintf(pos, "\n");
} }
...@@ -78,17 +79,17 @@ static ssize_t show_link_rate(struct device *cdev, ...@@ -78,17 +79,17 @@ static ssize_t show_link_rate(struct device *cdev,
/* show the link rate, not the data rate */ /* show the link rate, not the data rate */
switch (adev->link_rate) { switch (adev->link_rate) {
case ATM_OC3_PCR: case ATM_OC3_PCR:
link_rate = 155520000; link_rate = 155520000;
break; break;
case ATM_OC12_PCR: case ATM_OC12_PCR:
link_rate = 622080000; link_rate = 622080000;
break; break;
case ATM_25_PCR: case ATM_25_PCR:
link_rate = 25600000; link_rate = 25600000;
break; break;
default: default:
link_rate = adev->link_rate * 8 * 53; link_rate = adev->link_rate * 8 * 53;
} }
pos += sprintf(pos, "%d\n", link_rate); pos += sprintf(pos, "%d\n", link_rate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment