sctp: fix checkpatch errors with (foo*)|foo * bar|foo* bar
fix checkpatch errors below: ERROR: "(foo*)" should be "(foo *)" ERROR: "foo * bar" should be "foo *bar" ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cb3f837ba9
commit
26ac8e5fe1
@@ -82,7 +82,7 @@ static int sctp_writeable(struct sock *sk);
|
||||
static void sctp_wfree(struct sk_buff *skb);
|
||||
static int sctp_wait_for_sndbuf(struct sctp_association *, long *timeo_p,
|
||||
size_t msg_len);
|
||||
static int sctp_wait_for_packet(struct sock * sk, int *err, long *timeo_p);
|
||||
static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p);
|
||||
static int sctp_wait_for_connect(struct sctp_association *, long *timeo_p);
|
||||
static int sctp_wait_for_accept(struct sock *sk, long timeo);
|
||||
static void sctp_wait_for_close(struct sock *sk, long timeo);
|
||||
@@ -952,7 +952,7 @@ int sctp_asconf_mgmt(struct sctp_sock *sp, struct sctp_sockaddr_entry *addrw)
|
||||
*
|
||||
* Returns 0 if ok, <0 errno code on error.
|
||||
*/
|
||||
static int sctp_setsockopt_bindx(struct sock* sk,
|
||||
static int sctp_setsockopt_bindx(struct sock *sk,
|
||||
struct sockaddr __user *addrs,
|
||||
int addrs_size, int op)
|
||||
{
|
||||
@@ -1039,7 +1039,7 @@ out:
|
||||
* Common routine for handling connect() and sctp_connectx().
|
||||
* Connect will come in with just a single address.
|
||||
*/
|
||||
static int __sctp_connect(struct sock* sk,
|
||||
static int __sctp_connect(struct sock *sk,
|
||||
struct sockaddr *kaddrs,
|
||||
int addrs_size,
|
||||
sctp_assoc_t *assoc_id)
|
||||
@@ -1299,7 +1299,7 @@ out_free:
|
||||
*
|
||||
* Returns >=0 if ok, <0 errno code on error.
|
||||
*/
|
||||
static int __sctp_setsockopt_connectx(struct sock* sk,
|
||||
static int __sctp_setsockopt_connectx(struct sock *sk,
|
||||
struct sockaddr __user *addrs,
|
||||
int addrs_size,
|
||||
sctp_assoc_t *assoc_id)
|
||||
@@ -1337,7 +1337,7 @@ static int __sctp_setsockopt_connectx(struct sock* sk,
|
||||
* This is an older interface. It's kept for backward compatibility
|
||||
* to the option that doesn't provide association id.
|
||||
*/
|
||||
static int sctp_setsockopt_connectx_old(struct sock* sk,
|
||||
static int sctp_setsockopt_connectx_old(struct sock *sk,
|
||||
struct sockaddr __user *addrs,
|
||||
int addrs_size)
|
||||
{
|
||||
@@ -1350,7 +1350,7 @@ static int sctp_setsockopt_connectx_old(struct sock* sk,
|
||||
* indication to the call. Error is always negative and association id is
|
||||
* always positive.
|
||||
*/
|
||||
static int sctp_setsockopt_connectx(struct sock* sk,
|
||||
static int sctp_setsockopt_connectx(struct sock *sk,
|
||||
struct sockaddr __user *addrs,
|
||||
int addrs_size)
|
||||
{
|
||||
@@ -1373,7 +1373,7 @@ static int sctp_setsockopt_connectx(struct sock* sk,
|
||||
* addrs_num structure member. That way we can re-use the existing
|
||||
* code.
|
||||
*/
|
||||
static int sctp_getsockopt_connectx3(struct sock* sk, int len,
|
||||
static int sctp_getsockopt_connectx3(struct sock *sk, int len,
|
||||
char __user *optval,
|
||||
int __user *optlen)
|
||||
{
|
||||
@@ -5475,7 +5475,7 @@ static int sctp_getsockopt_local_auth_chunks(struct sock *sk, int len,
|
||||
return -EINVAL;
|
||||
|
||||
if (asoc)
|
||||
ch = (struct sctp_chunks_param*)asoc->c.auth_chunks;
|
||||
ch = (struct sctp_chunks_param *)asoc->c.auth_chunks;
|
||||
else
|
||||
ch = sctp_sk(sk)->ep->auth_chunk_list;
|
||||
|
||||
@@ -6417,7 +6417,7 @@ static int sctp_msghdr_parse(const struct msghdr *msg, sctp_cmsgs_t *cmsgs)
|
||||
* Note: This function is the same function as in core/datagram.c
|
||||
* with a few modifications to make lksctp work.
|
||||
*/
|
||||
static int sctp_wait_for_packet(struct sock * sk, int *err, long *timeo_p)
|
||||
static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p)
|
||||
{
|
||||
int error;
|
||||
DEFINE_WAIT(wait);
|
||||
|
Reference in New Issue
Block a user