]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
wireless: wext: remove ndo_do_ioctl fallback
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2017 07:17:38 +0000 (09:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2017 07:17:48 +0000 (09:17 +0200)
There are no longer any drivers (in the tree proper, I didn't
check all the staging drivers) that take WEXT ioctls through
this API, the only remaining ones that even have ndo_do_ioctl
are using it only for private ioctls.

Therefore, we can remove this call.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-core.c

index 1a4db6790e2077d4ea922d1c32cde5352543fa2c..24ba8a99b9460b2df005b7fc1c17637a11941bf6 100644 (file)
@@ -957,9 +957,6 @@ static int wireless_process_ioctl(struct net *net, struct ifreq *ifr,
                else if (private)
                        return private(dev, iwr, cmd, info, handler);
        }
-       /* Old driver API : call driver ioctl handler */
-       if (dev->netdev_ops->ndo_do_ioctl)
-               return dev->netdev_ops->ndo_do_ioctl(dev, ifr, cmd);
        return -EOPNOTSUPP;
 }