ipv4: Reduce switch/case indent
Make the case labels the same indent as the switch. git diff -w shows no difference. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
181b1e9ce1
commit
4500ebf8d1
@ -825,28 +825,28 @@ static int compat_raw_getsockopt(struct sock *sk, int level, int optname,
|
|||||||
static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case SIOCOUTQ: {
|
case SIOCOUTQ: {
|
||||||
int amount = sk_wmem_alloc_get(sk);
|
int amount = sk_wmem_alloc_get(sk);
|
||||||
|
|
||||||
return put_user(amount, (int __user *)arg);
|
return put_user(amount, (int __user *)arg);
|
||||||
}
|
}
|
||||||
case SIOCINQ: {
|
case SIOCINQ: {
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
int amount = 0;
|
int amount = 0;
|
||||||
|
|
||||||
spin_lock_bh(&sk->sk_receive_queue.lock);
|
spin_lock_bh(&sk->sk_receive_queue.lock);
|
||||||
skb = skb_peek(&sk->sk_receive_queue);
|
skb = skb_peek(&sk->sk_receive_queue);
|
||||||
if (skb != NULL)
|
if (skb != NULL)
|
||||||
amount = skb->len;
|
amount = skb->len;
|
||||||
spin_unlock_bh(&sk->sk_receive_queue.lock);
|
spin_unlock_bh(&sk->sk_receive_queue.lock);
|
||||||
return put_user(amount, (int __user *)arg);
|
return put_user(amount, (int __user *)arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
#ifdef CONFIG_IP_MROUTE
|
#ifdef CONFIG_IP_MROUTE
|
||||||
return ipmr_ioctl(sk, cmd, (void __user *)arg);
|
return ipmr_ioctl(sk, cmd, (void __user *)arg);
|
||||||
#else
|
#else
|
||||||
return -ENOIOCTLCMD;
|
return -ENOIOCTLCMD;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1439,20 +1439,20 @@ static int ip_error(struct sk_buff *skb)
|
|||||||
int code;
|
int code;
|
||||||
|
|
||||||
switch (rt->dst.error) {
|
switch (rt->dst.error) {
|
||||||
case EINVAL:
|
case EINVAL:
|
||||||
default:
|
default:
|
||||||
goto out;
|
goto out;
|
||||||
case EHOSTUNREACH:
|
case EHOSTUNREACH:
|
||||||
code = ICMP_HOST_UNREACH;
|
code = ICMP_HOST_UNREACH;
|
||||||
break;
|
break;
|
||||||
case ENETUNREACH:
|
case ENETUNREACH:
|
||||||
code = ICMP_NET_UNREACH;
|
code = ICMP_NET_UNREACH;
|
||||||
IP_INC_STATS_BH(dev_net(rt->dst.dev),
|
IP_INC_STATS_BH(dev_net(rt->dst.dev),
|
||||||
IPSTATS_MIB_INNOROUTES);
|
IPSTATS_MIB_INNOROUTES);
|
||||||
break;
|
break;
|
||||||
case EACCES:
|
case EACCES:
|
||||||
code = ICMP_PKT_FILTERED;
|
code = ICMP_PKT_FILTERED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rt->peer)
|
if (!rt->peer)
|
||||||
|
Loading…
Reference in New Issue
Block a user