diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 41277b6c0268..48ac45f26fa3 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1415,9 +1415,7 @@ static void tun_setup(struct net_device *dev) */ static int tun_validate(struct nlattr *tb[], struct nlattr *data[]) { - if (!data) - return 0; - return -EINVAL; + return -EOPNOTSUPP; } static struct rtnl_link_ops tun_link_ops __read_mostly = {