@@ -1568,7 +1568,7 @@ static int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
15681568 struct net * net = sock_net (sk );
15691569 struct sctp_sock * sp ;
15701570 struct sctp_endpoint * ep ;
1571- struct sctp_association * new_asoc = NULL , * asoc = NULL ;
1571+ struct sctp_association * new_asoc = NULL , * asoc = NULL ;
15721572 struct sctp_transport * transport , * chunk_tp ;
15731573 struct sctp_chunk * chunk ;
15741574 union sctp_addr to ;
@@ -2462,7 +2462,7 @@ static int sctp_setsockopt_peer_addr_params(struct sock *sk,
24622462 int hb_change , pmtud_change , sackdelay_change ;
24632463
24642464 if (optlen != sizeof (struct sctp_paddrparams ))
2465- return - EINVAL ;
2465+ return - EINVAL ;
24662466
24672467 if (copy_from_user (& params , optval , optlen ))
24682468 return - EFAULT ;
@@ -2483,7 +2483,7 @@ static int sctp_setsockopt_peer_addr_params(struct sock *sk,
24832483 /* If an address other than INADDR_ANY is specified, and
24842484 * no transport is found, then the request is invalid.
24852485 */
2486- if (!sctp_is_any (sk , ( union sctp_addr * )& params .spp_address )) {
2486+ if (!sctp_is_any (sk , (union sctp_addr * )& params .spp_address )) {
24872487 trans = sctp_addr_id2transport (sk , & params .spp_address ,
24882488 params .spp_assoc_id );
24892489 if (!trans )
@@ -2588,7 +2588,7 @@ static int sctp_setsockopt_delayed_ack(struct sock *sk,
25882588 else
25892589 params .sack_freq = 0 ;
25902590 } else
2591- return - EINVAL ;
2591+ return - EINVAL ;
25922592
25932593 /* Validate value parameter. */
25942594 if (params .sack_delay > 500 )
@@ -3332,7 +3332,7 @@ static int sctp_setsockopt_hmac_ident(struct sock *sk,
33323332 if (optlen < sizeof (struct sctp_hmacalgo ))
33333333 return - EINVAL ;
33343334
3335- hmacs = memdup_user (optval , optlen );
3335+ hmacs = memdup_user (optval , optlen );
33363336 if (IS_ERR (hmacs ))
33373337 return PTR_ERR (hmacs );
33383338
@@ -3370,7 +3370,7 @@ static int sctp_setsockopt_auth_key(struct sock *sk,
33703370 if (optlen <= sizeof (struct sctp_authkey ))
33713371 return - EINVAL ;
33723372
3373- authkey = memdup_user (optval , optlen );
3373+ authkey = memdup_user (optval , optlen );
33743374 if (IS_ERR (authkey ))
33753375 return PTR_ERR (authkey );
33763376
@@ -4467,7 +4467,7 @@ static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len,
44674467 /* If an address other than INADDR_ANY is specified, and
44684468 * no transport is found, then the request is invalid.
44694469 */
4470- if (!sctp_is_any (sk , ( union sctp_addr * )& params .spp_address )) {
4470+ if (!sctp_is_any (sk , (union sctp_addr * )& params .spp_address )) {
44714471 trans = sctp_addr_id2transport (sk , & params .spp_address ,
44724472 params .spp_assoc_id );
44734473 if (!trans ) {
@@ -4578,7 +4578,7 @@ static int sctp_getsockopt_delayed_ack(struct sock *sk, int len,
45784578 if (copy_from_user (& params , optval , len ))
45794579 return - EFAULT ;
45804580 } else
4581- return - EINVAL ;
4581+ return - EINVAL ;
45824582
45834583 /* Get association, if sack_assoc_id != 0 and the socket is a one
45844584 * to many style socket, and an association was not found, then
@@ -4668,8 +4668,8 @@ static int sctp_getsockopt_peer_addrs(struct sock *sk, int len,
46684668 if (!asoc )
46694669 return - EINVAL ;
46704670
4671- to = optval + offsetof(struct sctp_getaddrs ,addrs );
4672- space_left = len - offsetof(struct sctp_getaddrs ,addrs );
4671+ to = optval + offsetof(struct sctp_getaddrs , addrs );
4672+ space_left = len - offsetof(struct sctp_getaddrs , addrs );
46734673
46744674 list_for_each_entry (from , & asoc -> peer .transport_addr_list ,
46754675 transports ) {
@@ -4729,7 +4729,7 @@ static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to,
47294729 memcpy (to , & temp , addrlen );
47304730
47314731 to += addrlen ;
4732- cnt ++ ;
4732+ cnt ++ ;
47334733 space_left -= addrlen ;
47344734 * bytes_copied += addrlen ;
47354735 }
@@ -4778,8 +4778,8 @@ static int sctp_getsockopt_local_addrs(struct sock *sk, int len,
47784778 bp = & asoc -> base .bind_addr ;
47794779 }
47804780
4781- to = optval + offsetof(struct sctp_getaddrs ,addrs );
4782- space_left = len - offsetof(struct sctp_getaddrs ,addrs );
4781+ to = optval + offsetof(struct sctp_getaddrs , addrs );
4782+ space_left = len - offsetof(struct sctp_getaddrs , addrs );
47834783
47844784 addrs = kmalloc (space_left , GFP_KERNEL );
47854785 if (!addrs )
@@ -4818,7 +4818,7 @@ static int sctp_getsockopt_local_addrs(struct sock *sk, int len,
48184818 memcpy (buf , & temp , addrlen );
48194819 buf += addrlen ;
48204820 bytes_copied += addrlen ;
4821- cnt ++ ;
4821+ cnt ++ ;
48224822 space_left -= addrlen ;
48234823 }
48244824
@@ -5090,7 +5090,7 @@ static int sctp_getsockopt_associnfo(struct sock *sk, int len,
50905090 assocparams .sasoc_cookie_life = ktime_to_ms (asoc -> cookie_life );
50915091
50925092 list_for_each (pos , & asoc -> peer .transport_addr_list ) {
5093- cnt ++ ;
5093+ cnt ++ ;
50945094 }
50955095
50965096 assocparams .sasoc_number_peer_destinations = cnt ;
0 commit comments