.host_command_length = ETH_ALEN
        };
        int err;
-       int len;
 
        IPW_DEBUG_HC("DISASSOCIATION_BSSID\n");
 
-       len = ETH_ALEN;
        /* The Firmware currently ignores the BSSID and just disassociates from
         * the currently associated AP -- but in the off chance that a future
         * firmware does use the BSSID provided here, we go ahead and try and
        struct libipw_device *ieee = priv->ieee;
        struct lib80211_crypt_data *crypt;
        struct iw_param *param = &wrqu->param;
-       int ret = 0;
 
        switch (param->flags & IW_AUTH_INDEX) {
        case IW_AUTH_WPA_VERSION:
                /*
                 * wpa_supplicant will control these internally
                 */
-               ret = -EOPNOTSUPP;
                break;
 
        case IW_AUTH_TKIP_COUNTERMEASURES:
 {
        struct ipw2100_priv *priv = libipw_priv(dev);
        struct iw_mlme *mlme = (struct iw_mlme *)extra;
-       __le16 reason;
-
-       reason = cpu_to_le16(mlme->reason_code);
 
        switch (mlme->cmd) {
        case IW_MLME_DEAUTH:
 
 {
        struct iw_point *erq = &(wrqu->encoding);
        int len, key;
-       struct lib80211_crypt_data *crypt;
        struct libipw_security *sec = &ieee->sec;
 
        LIBIPW_DEBUG_WX("GET_ENCODE\n");
        } else
                key = ieee->crypt_info.tx_keyidx;
 
-       crypt = ieee->crypt_info.crypt[key];
        erq->flags = key + 1;
 
        if (!sec->enabled) {