diff options
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index cf6da6efc71a..99b58d862174 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1791,8 +1791,6 @@ static int tun_set_queue(struct file *file, struct ifreq *ifr) | |||
1791 | tun = tfile->detached; | 1791 | tun = tfile->detached; |
1792 | if (!tun) | 1792 | if (!tun) |
1793 | ret = -EINVAL; | 1793 | ret = -EINVAL; |
1794 | else if (tun_not_capable(tun)) | ||
1795 | ret = -EPERM; | ||
1796 | else | 1794 | else |
1797 | ret = tun_attach(tun, file); | 1795 | ret = tun_attach(tun, file); |
1798 | } else if (ifr->ifr_flags & IFF_DETACH_QUEUE) { | 1796 | } else if (ifr->ifr_flags & IFF_DETACH_QUEUE) { |