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

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

ipv6: Reduce switch/case indent



Make the case labels the same indent as the switch.

git diff -w shows 80 column reflowing,
removal of a useless break after return, and moving
open brace after case instead of separate line.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4500ebf8
Loading
Loading
Loading
Loading
+69 −76
Original line number Diff line number Diff line
@@ -985,7 +985,6 @@ static int do_rawv6_setsockopt(struct sock *sk, int level, int optname,
		}

		return 0;
			break;

	default:
		return -ENOPROTOOPT;
@@ -1002,14 +1001,12 @@ static int rawv6_setsockopt(struct sock *sk, int level, int optname,
	case SOL_ICMPV6:
		if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6)
			return -EOPNOTSUPP;
			return rawv6_seticmpfilter(sk, level, optname, optval,
						   optlen);
		return rawv6_seticmpfilter(sk, level, optname, optval, optlen);
	case SOL_IPV6:
		if (optname == IPV6_CHECKSUM)
			break;
	default:
			return ipv6_setsockopt(sk, level, optname, optval,
					       optlen);
		return ipv6_setsockopt(sk, level, optname, optval, optlen);
	}

	return do_rawv6_setsockopt(sk, level, optname, optval, optlen);
@@ -1082,14 +1079,12 @@ static int rawv6_getsockopt(struct sock *sk, int level, int optname,
	case SOL_ICMPV6:
		if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6)
			return -EOPNOTSUPP;
			return rawv6_geticmpfilter(sk, level, optname, optval,
						   optlen);
		return rawv6_geticmpfilter(sk, level, optname, optval, optlen);
	case SOL_IPV6:
		if (optname == IPV6_CHECKSUM)
			break;
	default:
			return ipv6_getsockopt(sk, level, optname, optval,
					       optlen);
		return ipv6_getsockopt(sk, level, optname, optval, optlen);
	}

	return do_rawv6_getsockopt(sk, level, optname, optval, optlen);
@@ -1120,14 +1115,12 @@ static int compat_rawv6_getsockopt(struct sock *sk, int level, int optname,
static int rawv6_ioctl(struct sock *sk, int cmd, unsigned long arg)
{
	switch (cmd) {
		case SIOCOUTQ:
		{
	case SIOCOUTQ: {
		int amount = sk_wmem_alloc_get(sk);

		return put_user(amount, (int __user *)arg);
	}
		case SIOCINQ:
		{
	case SIOCINQ: {
		struct sk_buff *skb;
		int amount = 0;