Commit 12132768 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

tun: Remove unused first parameter of tun_get_iff()

Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0c3e0e3b
...@@ -2872,8 +2872,7 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) ...@@ -2872,8 +2872,7 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
return err; return err;
} }
static void tun_get_iff(struct net *net, struct tun_struct *tun, static void tun_get_iff(struct tun_struct *tun, struct ifreq *ifr)
struct ifreq *ifr)
{ {
tun_debug(KERN_INFO, tun, "tun_get_iff\n"); tun_debug(KERN_INFO, tun, "tun_get_iff\n");
...@@ -3106,7 +3105,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, ...@@ -3106,7 +3105,7 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd,
ret = 0; ret = 0;
switch (cmd) { switch (cmd) {
case TUNGETIFF: case TUNGETIFF:
tun_get_iff(current->nsproxy->net_ns, tun, &ifr); tun_get_iff(tun, &ifr);
if (tfile->detached) if (tfile->detached)
ifr.ifr_flags |= IFF_DETACH_QUEUE; ifr.ifr_flags |= IFF_DETACH_QUEUE;
...@@ -3464,7 +3463,7 @@ static void tun_chr_show_fdinfo(struct seq_file *m, struct file *file) ...@@ -3464,7 +3463,7 @@ static void tun_chr_show_fdinfo(struct seq_file *m, struct file *file)
rtnl_lock(); rtnl_lock();
tun = tun_get(tfile); tun = tun_get(tfile);
if (tun) if (tun)
tun_get_iff(current->nsproxy->net_ns, tun, &ifr); tun_get_iff(tun, &ifr);
rtnl_unlock(); rtnl_unlock();
if (tun) if (tun)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment