Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fddc5f3e authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 89f0e4fe
Loading
Loading
Loading
Loading
+234 −237
Original line number Diff line number Diff line
@@ -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;
+43 −44
Original line number Diff line number Diff line
@@ -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;
	}

+38 −40
Original line number Diff line number Diff line
@@ -127,8 +127,7 @@ 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) {
@@ -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;
	}

+22 −22

File changed.

Contains only whitespace changes.

+59 −59

File changed.

Contains only whitespace changes.