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>
This commit is contained in:
Joe Perches 2010-01-26 11:40:03 +00:00 committed by David S. Miller
parent 3356b4d416
commit f0a6cb118d

View File

@ -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");
} }