summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-07-16 21:45:34 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-07-22 23:54:17 +0200
commitc0e5a8c21bb9bb222917c36eba503ae88af52c34 (patch)
tree9bcbd5d424b18a8f1984963b9c570fbb1960615b
parentnet: igb_main.c fix sparse integer as NULL pointer warning (diff)
downloadlinux-c0e5a8c21bb9bb222917c36eba503ae88af52c34.tar.xz
linux-c0e5a8c21bb9bb222917c36eba503ae88af52c34.zip
net: tun.c fix cast
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/net/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index a82b32b40131..e6bbc639c2d0 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -900,7 +900,7 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file,
if ((tun->flags & TUN_TYPE_MASK) != TUN_TAP_DEV)
return -EINVAL;
rtnl_lock();
- ret = update_filter(&tun->txflt, (void *) __user arg);
+ ret = update_filter(&tun->txflt, (void __user *)arg);
rtnl_unlock();
return ret;