staging: vt6656: iwctl.c: Remove return statement of iwctl_giwrate
authorMarcos Paulo de Souza <marcos.mage@gmail.com>
Wed, 28 Dec 2011 21:13:39 +0000 (21:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 17:18:26 +0000 (09:18 -0800)
This function will always return 0, and this data is not used by who
calls this function.

Signed-off-by: Marcos Paulo de Souza <marcos.mage@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/iwctl.c
drivers/staging/vt6656/iwctl.h
drivers/staging/vt6656/main_usb.c

index d6c969a65cf8b21f08961c2c1e5e0b7d0bb1bf6d..4f33b0c0812a857d3e40e0b120ee459e60c17ebc 100644 (file)
@@ -965,8 +965,7 @@ int iwctl_siwrate(struct net_device *dev,
 /*
  * Wireless Handler : get data rate
  */
-
-int iwctl_giwrate(struct net_device *dev,
+void iwctl_giwrate(struct net_device *dev,
              struct iw_request_info *info,
              struct iw_param *wrq,
              char *extra)
@@ -1004,9 +1003,6 @@ int iwctl_giwrate(struct net_device *dev,
            if (pDevice->bFixRate == TRUE)
                wrq->fixed = TRUE;
     }
-
-
-       return 0;
 }
 
 
index 0bab0d755c5e42cddc4b63a38d6b64241cf8ba0b..bd38e9dc6f3344e5f4f44047271ae5503817dfe5 100644 (file)
@@ -107,7 +107,7 @@ int iwctl_siwrate(struct net_device *dev,
                         struct iw_param *wrq,
              char *extra);
 
-int iwctl_giwrate(struct net_device *dev,
+void iwctl_giwrate(struct net_device *dev,
              struct iw_request_info *info,
              struct iw_param *wrq,
              char *extra);
index 91b953cb6d36fb1f67dcdc81259973683044c84f..33a451c6ac18f6bdcaee1768b1558ad813d43fde 100644 (file)
@@ -1698,8 +1698,7 @@ static int  device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
 
        // Get the current bit-rate
        case SIOCGIWRATE:
-
-               rc = iwctl_giwrate(dev, NULL, &(wrq->u.bitrate), NULL);
+               iwctl_giwrate(dev, NULL, &(wrq->u.bitrate), NULL);
                break;
 
        // Set the desired RTS threshold