diff options
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index f904f2bc0f2c..11938fb20395 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -941,7 +941,7 @@ SCTP_STATIC int sctp_setsockopt_bindx(struct sock* sk, | |||
941 | default: | 941 | default: |
942 | err = -EINVAL; | 942 | err = -EINVAL; |
943 | break; | 943 | break; |
944 | }; | 944 | } |
945 | 945 | ||
946 | out: | 946 | out: |
947 | kfree(kaddrs); | 947 | kfree(kaddrs); |
@@ -3048,7 +3048,7 @@ SCTP_STATIC int sctp_setsockopt(struct sock *sk, int level, int optname, | |||
3048 | default: | 3048 | default: |
3049 | retval = -ENOPROTOOPT; | 3049 | retval = -ENOPROTOOPT; |
3050 | break; | 3050 | break; |
3051 | }; | 3051 | } |
3052 | 3052 | ||
3053 | sctp_release_sock(sk); | 3053 | sctp_release_sock(sk); |
3054 | 3054 | ||
@@ -4873,7 +4873,7 @@ SCTP_STATIC int sctp_getsockopt(struct sock *sk, int level, int optname, | |||
4873 | default: | 4873 | default: |
4874 | retval = -ENOPROTOOPT; | 4874 | retval = -ENOPROTOOPT; |
4875 | break; | 4875 | break; |
4876 | }; | 4876 | } |
4877 | 4877 | ||
4878 | sctp_release_sock(sk); | 4878 | sctp_release_sock(sk); |
4879 | return retval; | 4879 | return retval; |
@@ -5198,7 +5198,8 @@ int sctp_inet_listen(struct socket *sock, int backlog) | |||
5198 | break; | 5198 | break; |
5199 | default: | 5199 | default: |
5200 | break; | 5200 | break; |
5201 | }; | 5201 | } |
5202 | |||
5202 | if (err) | 5203 | if (err) |
5203 | goto cleanup; | 5204 | goto cleanup; |
5204 | 5205 | ||
@@ -5461,7 +5462,7 @@ SCTP_STATIC int sctp_msghdr_parse(const struct msghdr *msg, | |||
5461 | 5462 | ||
5462 | default: | 5463 | default: |
5463 | return -EINVAL; | 5464 | return -EINVAL; |
5464 | }; | 5465 | } |
5465 | } | 5466 | } |
5466 | return 0; | 5467 | return 0; |
5467 | } | 5468 | } |