mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
x25: Reduce switch/case indent
Make the case labels the same indent as the switch. git diff -w shows 80 column line reflowing. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
89f0e4feaf
commit
fddc5f3e91
@ -1413,8 +1413,7 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
||||
case SIOCX25SFACILITIES: {
|
||||
struct x25_facilities facilities;
|
||||
rc = -EFAULT;
|
||||
if (copy_from_user(&facilities, argp,
|
||||
sizeof(facilities)))
|
||||
if (copy_from_user(&facilities, argp, sizeof(facilities)))
|
||||
break;
|
||||
rc = -EINVAL;
|
||||
lock_sock(sk);
|
||||
@ -1502,8 +1501,7 @@ out_dtefac_release:
|
||||
struct x25_calluserdata calluserdata;
|
||||
|
||||
rc = -EFAULT;
|
||||
if (copy_from_user(&calluserdata, argp,
|
||||
sizeof(calluserdata)))
|
||||
if (copy_from_user(&calluserdata, argp, sizeof(calluserdata)))
|
||||
break;
|
||||
rc = -EINVAL;
|
||||
if (calluserdata.cudlength > X25_MAX_CUD_LEN)
|
||||
@ -1517,8 +1515,7 @@ out_dtefac_release:
|
||||
|
||||
case SIOCX25GCAUSEDIAG: {
|
||||
lock_sock(sk);
|
||||
rc = copy_to_user(argp, &x25->causediag,
|
||||
sizeof(x25->causediag))
|
||||
rc = copy_to_user(argp, &x25->causediag, sizeof(x25->causediag))
|
||||
? -EFAULT : 0;
|
||||
release_sock(sk);
|
||||
break;
|
||||
@ -1548,7 +1545,7 @@ out_dtefac_release:
|
||||
sizeof(sub_addr)))
|
||||
goto out_cud_release;
|
||||
rc = -EINVAL;
|
||||
if(sub_addr.cudmatchlength > X25_MAX_CUD_LEN)
|
||||
if (sub_addr.cudmatchlength > X25_MAX_CUD_LEN)
|
||||
goto out_cud_release;
|
||||
x25->cudmatchlength = sub_addr.cudmatchlength;
|
||||
rc = 0;
|
||||
|
@ -90,15 +90,14 @@ void x25_link_control(struct sk_buff *skb, struct x25_neigh *nb,
|
||||
break;
|
||||
|
||||
case X25_DIAGNOSTIC:
|
||||
printk(KERN_WARNING "x25: diagnostic #%d - "
|
||||
"%02X %02X %02X\n",
|
||||
printk(KERN_WARNING "x25: diagnostic #%d - %02X %02X %02X\n",
|
||||
skb->data[3], skb->data[4],
|
||||
skb->data[5], skb->data[6]);
|
||||
break;
|
||||
|
||||
default:
|
||||
printk(KERN_WARNING "x25: received unknown %02X "
|
||||
"with LCI 000\n", frametype);
|
||||
printk(KERN_WARNING "x25: received unknown %02X with LCI 000\n",
|
||||
frametype);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -127,11 +127,10 @@ void x25_write_internal(struct sock *sk, int frametype)
|
||||
*/
|
||||
switch (frametype) {
|
||||
case X25_CALL_REQUEST:
|
||||
len += 1 + X25_ADDR_LEN + X25_MAX_FAC_LEN +
|
||||
X25_MAX_CUD_LEN;
|
||||
len += 1 + X25_ADDR_LEN + X25_MAX_FAC_LEN + X25_MAX_CUD_LEN;
|
||||
break;
|
||||
case X25_CALL_ACCEPTED: /* fast sel with no restr on resp */
|
||||
if(x25->facilities.reverse & 0x80) {
|
||||
if (x25->facilities.reverse & 0x80) {
|
||||
len += 1 + X25_MAX_FAC_LEN + X25_MAX_CUD_LEN;
|
||||
} else {
|
||||
len += 1 + X25_MAX_FAC_LEN;
|
||||
@ -149,8 +148,7 @@ void x25_write_internal(struct sock *sk, int frametype)
|
||||
case X25_RESET_CONFIRMATION:
|
||||
break;
|
||||
default:
|
||||
printk(KERN_ERR "X.25: invalid frame type %02X\n",
|
||||
frametype);
|
||||
printk(KERN_ERR "X.25: invalid frame type %02X\n", frametype);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user