diff options
-rw-r--r-- | net/ax25/af_ax25.c | 2 | ||||
-rw-r--r-- | net/rose/af_rose.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 9c487311e0a9..7023532beeff 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c | |||
@@ -1695,7 +1695,7 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
1695 | /* These two are safe on a single CPU system as only user tasks fiddle here */ | 1695 | /* These two are safe on a single CPU system as only user tasks fiddle here */ |
1696 | if ((skb = skb_peek(&sk->sk_receive_queue)) != NULL) | 1696 | if ((skb = skb_peek(&sk->sk_receive_queue)) != NULL) |
1697 | amount = skb->len; | 1697 | amount = skb->len; |
1698 | res = put_user(amount, (int __user *)argp); | 1698 | res = put_user(amount, (int __user *) argp); |
1699 | break; | 1699 | break; |
1700 | } | 1700 | } |
1701 | 1701 | ||
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 977f99a9cfc0..5acb1680524a 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -1243,7 +1243,7 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
1243 | amount = sk->sk_sndbuf - atomic_read(&sk->sk_wmem_alloc); | 1243 | amount = sk->sk_sndbuf - atomic_read(&sk->sk_wmem_alloc); |
1244 | if (amount < 0) | 1244 | if (amount < 0) |
1245 | amount = 0; | 1245 | amount = 0; |
1246 | return put_user(amount, (unsigned int __user *)argp); | 1246 | return put_user(amount, (unsigned int __user *) argp); |
1247 | } | 1247 | } |
1248 | 1248 | ||
1249 | case TIOCINQ: { | 1249 | case TIOCINQ: { |
@@ -1252,11 +1252,11 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
1252 | /* These two are safe on a single CPU system as only user tasks fiddle here */ | 1252 | /* These two are safe on a single CPU system as only user tasks fiddle here */ |
1253 | if ((skb = skb_peek(&sk->sk_receive_queue)) != NULL) | 1253 | if ((skb = skb_peek(&sk->sk_receive_queue)) != NULL) |
1254 | amount = skb->len; | 1254 | amount = skb->len; |
1255 | return put_user(amount, (unsigned int __user *)argp); | 1255 | return put_user(amount, (unsigned int __user *) argp); |
1256 | } | 1256 | } |
1257 | 1257 | ||
1258 | case SIOCGSTAMP: | 1258 | case SIOCGSTAMP: |
1259 | return sock_get_timestamp(sk, (struct timeval __user *)argp); | 1259 | return sock_get_timestamp(sk, (struct timeval __user *) argp); |
1260 | 1260 | ||
1261 | case SIOCGIFADDR: | 1261 | case SIOCGIFADDR: |
1262 | case SIOCSIFADDR: | 1262 | case SIOCSIFADDR: |