staging: unisys: remove visornic_ioctl
authorNeil Horman <nhorman@redhat.com>
Tue, 21 Jul 2015 13:55:47 +0000 (09:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:20:25 +0000 (21:20 -0700)
All it does is return no supported.  Removing the function entirely
accomplishes the same thing

Signed-off-by: Neil Horman <nhorman@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c

index 37f3e277285b76ca53cc67e04293a01e806eb147..a5da40066bc7401ac892409b82569976a92dc062 100644 (file)
@@ -977,21 +977,6 @@ visornic_get_stats(struct net_device *netdev)
        return &devdata->net_stats;
 }
 
-/**
- *     visornic_ioctl - ioctl function for netdevice.
- *     @netdev: netdevice
- *     @ifr: ignored
- *     @cmd: ignored
- *
- *     Currently not supported.
- *     Returns EOPNOTSUPP
- */
-static int
-visornic_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
-{
-       return -EOPNOTSUPP;
-}
-
 /**
  *     visornic_change_mtu - changes mtu of device.
  *     @netdev: netdevice
@@ -1442,7 +1427,6 @@ static const struct net_device_ops visornic_dev_ops = {
        .ndo_stop = visornic_close,
        .ndo_start_xmit = visornic_xmit,
        .ndo_get_stats = visornic_get_stats,
-       .ndo_do_ioctl = visornic_ioctl,
        .ndo_change_mtu = visornic_change_mtu,
        .ndo_tx_timeout = visornic_xmit_timeout,
        .ndo_set_rx_mode = visornic_set_multi,