Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19044
b: refs/heads/master
c: 8ae55f0
h: refs/heads/master
v: v3
  • Loading branch information
Kris Katterjohn authored and David S. Miller committed Jan 24, 2006
1 parent 5183eb9 commit e921245
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2966b66c25f81ad2b3298b651614c6a3be1a977f
refs/heads/master: 8ae55f0489d9a3446fcdaf4ffedda249234b8572
16 changes: 8 additions & 8 deletions trunk/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 e921245

Please sign in to comment.