Commit 8ae55f04 authored by Kris Katterjohn's avatar Kris Katterjohn Committed by David S. Miller

[NET]: Fix some whitespace issues in af_packet.c

Signed-off-by: default avatarKris Katterjohn <kjak@users.sourceforge.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2966b66c
...@@ -365,7 +365,7 @@ static int packet_sendmsg_spkt(struct kiocb *iocb, struct socket *sock, ...@@ -365,7 +365,7 @@ static int packet_sendmsg_spkt(struct kiocb *iocb, struct socket *sock,
*/ */
err = -EMSGSIZE; err = -EMSGSIZE;
if(len>dev->mtu+dev->hard_header_len) if (len > dev->mtu + dev->hard_header_len)
goto out_unlock; goto out_unlock;
err = -ENOBUFS; err = -ENOBUFS;
...@@ -935,7 +935,7 @@ static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, int add ...@@ -935,7 +935,7 @@ static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, int add
* Check legality * Check legality
*/ */
if(addr_len!=sizeof(struct sockaddr)) if (addr_len != sizeof(struct sockaddr))
return -EINVAL; return -EINVAL;
strlcpy(name,uaddr->sa_data,sizeof(name)); strlcpy(name,uaddr->sa_data,sizeof(name));
...@@ -1092,7 +1092,7 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock, ...@@ -1092,7 +1092,7 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock,
* retries. * retries.
*/ */
if(skb==NULL) if (skb == NULL)
goto out; goto out;
/* /*
...@@ -1392,7 +1392,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname, ...@@ -1392,7 +1392,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
if (level != SOL_PACKET) if (level != SOL_PACKET)
return -ENOPROTOOPT; return -ENOPROTOOPT;
if (get_user(len,optlen)) if (get_user(len, optlen))
return -EFAULT; return -EFAULT;
if (len < 0) if (len < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment