Skip to content

Commit

Permalink
[AX.25/ROSE]: Whitespace formatting changes
Browse files Browse the repository at this point in the history
Small formatting changes.

Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ralf Baechle authored and David S. Miller committed Sep 12, 2005
1 parent b01ef8f commit 20b7d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net/ax25/af_ax25.c
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
/* These two are safe on a single CPU system as only user tasks fiddle here */
if ((skb = skb_peek(&sk->sk_receive_queue)) != NULL)
amount = skb->len;
res = put_user(amount, (int __user *)argp);
res = put_user(amount, (int __user *) argp);
break;
}

Expand Down
6 changes: 3 additions & 3 deletions net/rose/af_rose.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
amount = sk->sk_sndbuf - atomic_read(&sk->sk_wmem_alloc);
if (amount < 0)
amount = 0;
return put_user(amount, (unsigned int __user *)argp);
return put_user(amount, (unsigned int __user *) argp);
}

case TIOCINQ: {
Expand All @@ -1252,11 +1252,11 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
/* These two are safe on a single CPU system as only user tasks fiddle here */
if ((skb = skb_peek(&sk->sk_receive_queue)) != NULL)
amount = skb->len;
return put_user(amount, (unsigned int __user *)argp);
return put_user(amount, (unsigned int __user *) argp);
}

case SIOCGSTAMP:
return sock_get_timestamp(sk, (struct timeval __user *)argp);
return sock_get_timestamp(sk, (struct timeval __user *) argp);

case SIOCGIFADDR:
case SIOCSIFADDR:
Expand Down

0 comments on commit 20b7d10

Please sign in to comment.