Skip to content

Commit

Permalink
[NET]: Fix some whitespace issues in af_packet.c
Browse files Browse the repository at this point in the history
Signed-off-by: Kris Katterjohn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Kris Katterjohn authored and davem330 committed Jan 24, 2006
1 parent 2966b66 commit 8ae55f0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static int packet_sendmsg_spkt(struct kiocb *iocb, struct socket *sock,
*/

err = -EMSGSIZE;
if(len>dev->mtu+dev->hard_header_len)
if (len > dev->mtu + dev->hard_header_len)
goto out_unlock;

err = -ENOBUFS;
Expand Down Expand Up @@ -935,7 +935,7 @@ static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, int add
* Check legality
*/

if(addr_len!=sizeof(struct sockaddr))
if (addr_len != sizeof(struct sockaddr))
return -EINVAL;
strlcpy(name,uaddr->sa_data,sizeof(name));

Expand Down Expand Up @@ -1092,7 +1092,7 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock,
* retries.
*/

if(skb==NULL)
if (skb == NULL)
goto out;

/*
Expand Down Expand Up @@ -1392,8 +1392,8 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
if (level != SOL_PACKET)
return -ENOPROTOOPT;

if (get_user(len,optlen))
return -EFAULT;
if (get_user(len, optlen))
return -EFAULT;

if (len < 0)
return -EINVAL;
Expand All @@ -1419,9 +1419,9 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
return -ENOPROTOOPT;
}

if (put_user(len, optlen))
return -EFAULT;
return 0;
if (put_user(len, optlen))
return -EFAULT;
return 0;
}


Expand Down

0 comments on commit 8ae55f0

Please sign in to comment.