Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4a67bb2 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman
Browse files

staging: csr: fix compilation warning in unifi_siwscan



got the warnings

drivers/staging/csr/sme_wext.c: In function ‘unifi_siwscan’:
drivers/staging/csr/sme_wext.c:1276:9: warning: variable ‘scantype’ set but not used [-Wunused-but-set-variable]

fixed by removing the variable

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b74e5f56
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -1273,7 +1273,6 @@ unifi_siwscan(struct net_device *dev, struct iw_request_info *info,
{
{
    netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev);
    netInterface_priv_t *interfacePriv = (netInterface_priv_t *)netdev_priv(dev);
    unifi_priv_t *priv = interfacePriv->privPtr;
    unifi_priv_t *priv = interfacePriv->privPtr;
    int scantype;
    int r;
    int r;
    CsrWifiSsid scan_ssid;
    CsrWifiSsid scan_ssid;
    unsigned char *channel_list = NULL;
    unsigned char *channel_list = NULL;
@@ -1293,8 +1292,6 @@ unifi_siwscan(struct net_device *dev, struct iw_request_info *info,
    }
    }




    scantype = UNIFI_SCAN_ACTIVE;

#if WIRELESS_EXT > 17
#if WIRELESS_EXT > 17
    /* Providing a valid channel list will force an active scan */
    /* Providing a valid channel list will force an active scan */
    if (req) {
    if (req) {