diff options
author | Joe Perches <joe@perches.com> | 2011-07-01 05:43:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-01 19:11:15 -0400 |
commit | 06f8fe11bb4a84de9d9faa50c7ffbe40b90d395a (patch) | |
tree | 79c244cd97661156649b6af488c4827729da634e /net/decnet/dn_dev.c | |
parent | 4a9e4b09326baa6db30ae35e3521bf5259b238f5 (diff) |
decnet: Reduce switch/case indent
Make the case labels the same indent as the switch.
git diff -w shows differences for line wrapping.
(fit multiple lines to 80 columns, join where possible)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_dev.c')
-rw-r--r-- | net/decnet/dn_dev.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index 48530b454395..ba4faceec405 100644 --- a/net/decnet/dn_dev.c +++ b/net/decnet/dn_dev.c | |||
@@ -437,17 +437,17 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) | |||
437 | 437 | ||
438 | dev_load(&init_net, ifr->ifr_name); | 438 | dev_load(&init_net, ifr->ifr_name); |
439 | 439 | ||
440 | switch(cmd) { | 440 | switch (cmd) { |
441 | case SIOCGIFADDR: | 441 | case SIOCGIFADDR: |
442 | break; | 442 | break; |
443 | case SIOCSIFADDR: | 443 | case SIOCSIFADDR: |
444 | if (!capable(CAP_NET_ADMIN)) | 444 | if (!capable(CAP_NET_ADMIN)) |
445 | return -EACCES; | 445 | return -EACCES; |
446 | if (sdn->sdn_family != AF_DECnet) | 446 | if (sdn->sdn_family != AF_DECnet) |
447 | return -EINVAL; | ||
448 | break; | ||
449 | default: | ||
450 | return -EINVAL; | 447 | return -EINVAL; |
448 | break; | ||
449 | default: | ||
450 | return -EINVAL; | ||
451 | } | 451 | } |
452 | 452 | ||
453 | rtnl_lock(); | 453 | rtnl_lock(); |
@@ -470,27 +470,27 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg) | |||
470 | goto done; | 470 | goto done; |
471 | } | 471 | } |
472 | 472 | ||
473 | switch(cmd) { | 473 | switch (cmd) { |
474 | case SIOCGIFADDR: | 474 | case SIOCGIFADDR: |
475 | *((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local; | 475 | *((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local; |
476 | goto rarok; | 476 | goto rarok; |
477 | 477 | ||
478 | case SIOCSIFADDR: | 478 | case SIOCSIFADDR: |
479 | if (!ifa) { | 479 | if (!ifa) { |
480 | if ((ifa = dn_dev_alloc_ifa()) == NULL) { | 480 | if ((ifa = dn_dev_alloc_ifa()) == NULL) { |
481 | ret = -ENOBUFS; | 481 | ret = -ENOBUFS; |
482 | break; | 482 | break; |
483 | } | ||
484 | memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); | ||
485 | } else { | ||
486 | if (ifa->ifa_local == dn_saddr2dn(sdn)) | ||
487 | break; | ||
488 | dn_dev_del_ifa(dn_db, ifap, 0); | ||
489 | } | 483 | } |
484 | memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); | ||
485 | } else { | ||
486 | if (ifa->ifa_local == dn_saddr2dn(sdn)) | ||
487 | break; | ||
488 | dn_dev_del_ifa(dn_db, ifap, 0); | ||
489 | } | ||
490 | 490 | ||
491 | ifa->ifa_local = ifa->ifa_address = dn_saddr2dn(sdn); | 491 | ifa->ifa_local = ifa->ifa_address = dn_saddr2dn(sdn); |
492 | 492 | ||
493 | ret = dn_dev_set_ifa(dev, ifa); | 493 | ret = dn_dev_set_ifa(dev, ifa); |
494 | } | 494 | } |
495 | done: | 495 | done: |
496 | rtnl_unlock(); | 496 | rtnl_unlock(); |
@@ -1335,13 +1335,13 @@ static void dn_dev_seq_stop(struct seq_file *seq, void *v) | |||
1335 | 1335 | ||
1336 | static char *dn_type2asc(char type) | 1336 | static char *dn_type2asc(char type) |
1337 | { | 1337 | { |
1338 | switch(type) { | 1338 | switch (type) { |
1339 | case DN_DEV_BCAST: | 1339 | case DN_DEV_BCAST: |
1340 | return "B"; | 1340 | return "B"; |
1341 | case DN_DEV_UCAST: | 1341 | case DN_DEV_UCAST: |
1342 | return "U"; | 1342 | return "U"; |
1343 | case DN_DEV_MPOINT: | 1343 | case DN_DEV_MPOINT: |
1344 | return "M"; | 1344 | return "M"; |
1345 | } | 1345 | } |
1346 | 1346 | ||
1347 | return "?"; | 1347 | return "?"; |