mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: Remove unnecessary semicolons after switch statements
Also added an explicit break; to avoid a fallthrough in net/ipv4/tcp_input.c Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
935e2a26b8
commit
ccbd6a5a4f
7 changed files with 12 additions and 11 deletions
|
|
@ -2215,7 +2215,7 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
|
|||
default:
|
||||
/* fallthru */
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
if (optlen < sizeof(int))
|
||||
return -EINVAL;
|
||||
|
|
|
|||
|
|
@ -3845,12 +3845,13 @@ void tcp_parse_options(struct sk_buff *skb, struct tcp_options_received *opt_rx,
|
|||
/* 16-bit multiple */
|
||||
opt_rx->cookie_plus = opsize;
|
||||
*hvpp = ptr;
|
||||
break;
|
||||
default:
|
||||
/* ignore option */
|
||||
break;
|
||||
};
|
||||
}
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
ptr += opsize-2;
|
||||
length -= opsize;
|
||||
|
|
|
|||
Loading…
Reference in a new issue