From: Harvey Harrison Date: Wed, 16 Jul 2008 19:45:34 +0000 (-0700) Subject: net: tun.c fix cast X-Git-Tag: v2.6.27-rc1~860^2~3^2~34 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0e5a8c21bb9bb222917c36eba503ae88af52c34;p=linux-2.6 net: tun.c fix cast Signed-off-by: Harvey Harrison Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index a82b32b401..e6bbc639c2 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;