Skip to content

Commit

Permalink
staging: csr: fix compilation warning in unifi_siwscan
Browse files Browse the repository at this point in the history
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: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Mar 14, 2013
1 parent b74e5f5 commit d4a67bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/csr/sme_wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
unifi_priv_t *priv = interfacePriv->privPtr;
int scantype;
int r;
CsrWifiSsid scan_ssid;
unsigned char *channel_list = NULL;
Expand All @@ -1293,8 +1292,6 @@ unifi_siwscan(struct net_device *dev, struct iw_request_info *info,
}


scantype = UNIFI_SCAN_ACTIVE;

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

0 comments on commit d4a67bb

Please sign in to comment.