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>
This commit is contained in:
parent
4a9e4b0932
commit
06f8fe11bb
|
@ -591,7 +591,8 @@ int dn_destroy_timer(struct sock *sk)
|
|||
case DN_DN:
|
||||
if (scp->nsp_rxtshift < decnet_dn_count) {
|
||||
/* printk(KERN_DEBUG "dn_destroy_timer: DN\n"); */
|
||||
dn_nsp_send_disc(sk, NSP_DISCCONF, NSP_REASON_DC, GFP_ATOMIC);
|
||||
dn_nsp_send_disc(sk, NSP_DISCCONF, NSP_REASON_DC,
|
||||
GFP_ATOMIC);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -1380,7 +1381,8 @@ static int __dn_setsockopt(struct socket *sock, int level,int optname, char __us
|
|||
break;
|
||||
|
||||
case DSO_DISDATA:
|
||||
if (sock->state != SS_CONNECTED && scp->accept_mode == ACC_IMMED)
|
||||
if (sock->state != SS_CONNECTED &&
|
||||
scp->accept_mode == ACC_IMMED)
|
||||
return -ENOTCONN;
|
||||
|
||||
if (optlen != sizeof(struct optdata_dn))
|
||||
|
@ -1425,7 +1427,6 @@ static int __dn_setsockopt(struct socket *sock, int level,int optname, char __us
|
|||
break;
|
||||
|
||||
case DSO_CONACCEPT:
|
||||
|
||||
if (scp->state != DN_CR)
|
||||
return -EINVAL;
|
||||
timeo = sock_rcvtimeo(sk, 0);
|
||||
|
@ -1433,7 +1434,6 @@ static int __dn_setsockopt(struct socket *sock, int level,int optname, char __us
|
|||
return err;
|
||||
|
||||
case DSO_CONREJECT:
|
||||
|
||||
if (scp->state != DN_CR)
|
||||
return -EINVAL;
|
||||
|
||||
|
@ -1584,8 +1584,7 @@ static int __dn_getsockopt(struct socket *sock, int level,int optname, char __us
|
|||
if (get_user(len, optlen))
|
||||
return -EFAULT;
|
||||
|
||||
ret = nf_getsockopt(sk, PF_DECnet, optname,
|
||||
optval, &len);
|
||||
ret = nf_getsockopt(sk, PF_DECnet, optname, optval, &len);
|
||||
if (ret >= 0)
|
||||
ret = put_user(len, optlen);
|
||||
return ret;
|
||||
|
|
|
@ -438,7 +438,8 @@ int dn_fib_semantic_match(int type, struct dn_fib_info *fi, const struct flowidn
|
|||
return 1;
|
||||
default:
|
||||
if (net_ratelimit())
|
||||
printk("DECnet: impossible routing event : dn_fib_semantic_match type=%d\n", type);
|
||||
printk("DECnet: impossible routing event : dn_fib_semantic_match type=%d\n",
|
||||
type);
|
||||
res->fi = NULL;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
@ -105,7 +105,9 @@ static void dn_ack(struct sock *sk, struct sk_buff *skb, unsigned short ack)
|
|||
case 0: /* ACK - Data */
|
||||
if (dn_after(ack, scp->ackrcv_dat)) {
|
||||
scp->ackrcv_dat = ack & 0x0fff;
|
||||
wakeup |= dn_nsp_check_xmit_queue(sk, skb, &scp->data_xmit_queue, ack);
|
||||
wakeup |= dn_nsp_check_xmit_queue(sk, skb,
|
||||
&scp->data_xmit_queue,
|
||||
ack);
|
||||
}
|
||||
break;
|
||||
case 1: /* NAK - Data */
|
||||
|
@ -113,7 +115,9 @@ static void dn_ack(struct sock *sk, struct sk_buff *skb, unsigned short ack)
|
|||
case 2: /* ACK - OtherData */
|
||||
if (dn_after(ack, scp->ackrcv_oth)) {
|
||||
scp->ackrcv_oth = ack & 0x0fff;
|
||||
wakeup |= dn_nsp_check_xmit_queue(sk, skb, &scp->other_xmit_queue, ack);
|
||||
wakeup |= dn_nsp_check_xmit_queue(sk, skb,
|
||||
&scp->other_xmit_queue,
|
||||
ack);
|
||||
}
|
||||
break;
|
||||
case 3: /* NAK - OtherData */
|
||||
|
|
|
@ -153,7 +153,8 @@ static void dn_rehash_zone(struct dn_zone *dz)
|
|||
new_hashmask = 0xFF;
|
||||
break;
|
||||
default:
|
||||
printk(KERN_DEBUG "DECnet: dn_rehash_zone: BUG! %d\n", old_divisor);
|
||||
printk(KERN_DEBUG "DECnet: dn_rehash_zone: BUG! %d\n",
|
||||
old_divisor);
|
||||
case 256:
|
||||
new_divisor = 1024;
|
||||
new_hashmask = 0x3FF;
|
||||
|
|
|
@ -74,6 +74,7 @@ static void strip_it(char *str)
|
|||
case '\r':
|
||||
case ':':
|
||||
*str = 0;
|
||||
/* Fallthrough */
|
||||
case 0:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue