diff options
author | wangweidong <wangweidong1@huawei.com> | 2014-02-14 02:43:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-14 16:18:32 -0500 |
commit | 7b30600cc653be63cfa434e49acc3c434699ae0b (patch) | |
tree | 287dc1a40753a91b9becae63bff185ba032f7551 /net/appletalk/ddp.c | |
parent | 6f0984a05e87aeab07781190aaf134bb8ad81a9c (diff) |
appletalk: fix checkpatch error with indent
checkpatch error: switch and case should be at the same indent.
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r-- | net/appletalk/ddp.c | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 06e0d19176d5..786ee2f83d5f 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
@@ -1790,53 +1790,53 @@ static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
1790 | void __user *argp = (void __user *)arg; | 1790 | void __user *argp = (void __user *)arg; |
1791 | 1791 | ||
1792 | switch (cmd) { | 1792 | switch (cmd) { |
1793 | /* Protocol layer */ | 1793 | /* Protocol layer */ |
1794 | case TIOCOUTQ: { | 1794 | case TIOCOUTQ: { |
1795 | long amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); | 1795 | long amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); |
1796 | 1796 | ||
1797 | if (amount < 0) | 1797 | if (amount < 0) |
1798 | amount = 0; | 1798 | amount = 0; |
1799 | rc = put_user(amount, (int __user *)argp); | 1799 | rc = put_user(amount, (int __user *)argp); |
1800 | break; | 1800 | break; |
1801 | } | 1801 | } |
1802 | case TIOCINQ: { | 1802 | case TIOCINQ: { |
1803 | /* | 1803 | /* |
1804 | * These two are safe on a single CPU system as only | 1804 | * These two are safe on a single CPU system as only |
1805 | * user tasks fiddle here | 1805 | * user tasks fiddle here |
1806 | */ | 1806 | */ |
1807 | struct sk_buff *skb = skb_peek(&sk->sk_receive_queue); | 1807 | struct sk_buff *skb = skb_peek(&sk->sk_receive_queue); |
1808 | long amount = 0; | 1808 | long amount = 0; |
1809 | 1809 | ||
1810 | if (skb) | 1810 | if (skb) |
1811 | amount = skb->len - sizeof(struct ddpehdr); | 1811 | amount = skb->len - sizeof(struct ddpehdr); |
1812 | rc = put_user(amount, (int __user *)argp); | 1812 | rc = put_user(amount, (int __user *)argp); |
1813 | break; | 1813 | break; |
1814 | } | 1814 | } |
1815 | case SIOCGSTAMP: | 1815 | case SIOCGSTAMP: |
1816 | rc = sock_get_timestamp(sk, argp); | 1816 | rc = sock_get_timestamp(sk, argp); |
1817 | break; | 1817 | break; |
1818 | case SIOCGSTAMPNS: | 1818 | case SIOCGSTAMPNS: |
1819 | rc = sock_get_timestampns(sk, argp); | 1819 | rc = sock_get_timestampns(sk, argp); |
1820 | break; | 1820 | break; |
1821 | /* Routing */ | 1821 | /* Routing */ |
1822 | case SIOCADDRT: | 1822 | case SIOCADDRT: |
1823 | case SIOCDELRT: | 1823 | case SIOCDELRT: |
1824 | rc = -EPERM; | 1824 | rc = -EPERM; |
1825 | if (capable(CAP_NET_ADMIN)) | 1825 | if (capable(CAP_NET_ADMIN)) |
1826 | rc = atrtr_ioctl(cmd, argp); | 1826 | rc = atrtr_ioctl(cmd, argp); |
1827 | break; | 1827 | break; |
1828 | /* Interface */ | 1828 | /* Interface */ |
1829 | case SIOCGIFADDR: | 1829 | case SIOCGIFADDR: |
1830 | case SIOCSIFADDR: | 1830 | case SIOCSIFADDR: |
1831 | case SIOCGIFBRDADDR: | 1831 | case SIOCGIFBRDADDR: |
1832 | case SIOCATALKDIFADDR: | 1832 | case SIOCATALKDIFADDR: |
1833 | case SIOCDIFADDR: | 1833 | case SIOCDIFADDR: |
1834 | case SIOCSARP: /* proxy AARP */ | 1834 | case SIOCSARP: /* proxy AARP */ |
1835 | case SIOCDARP: /* proxy AARP */ | 1835 | case SIOCDARP: /* proxy AARP */ |
1836 | rtnl_lock(); | 1836 | rtnl_lock(); |
1837 | rc = atif_ioctl(cmd, argp); | 1837 | rc = atif_ioctl(cmd, argp); |
1838 | rtnl_unlock(); | 1838 | rtnl_unlock(); |
1839 | break; | 1839 | break; |
1840 | } | 1840 | } |
1841 | 1841 | ||
1842 | return rc; | 1842 | return rc; |