Staging: rtl8187se: remove check for IW_ENCODE_DISABLED
authorMAACHE Mehdi <mehdi.maache@gmail.com>
Wed, 21 Nov 2012 14:18:29 +0000 (15:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 22:00:01 +0000 (14:00 -0800)
The original code had a no-op stub where it checked if
IW_ENCODE_DISABLED and did nothing.  Then in a cleanup patch we
accidentally turned the check on.  That was: de171bd6ff "Staging:
rtl8187se: r8180_wx: fixed a lot of checkpatch.pl issues".

The check should just be removed.

Signed-off-by: Mehdi MAACHE <mehdi.maache@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/r8180_wx.c

index 52f63d75d248028664a849b35a1ea92ec1a84441..156b75882290f7a0526ad48f56082c14a7d3cccd 100644 (file)
@@ -59,8 +59,6 @@ int r8180_wx_set_key(struct net_device *dev, struct iw_request_info *info,
        if (priv->ieee80211->bHwRadioOff)
                return 0;
 
-       if (erq->flags & IW_ENCODE_DISABLED)
-
        if (erq->length > 0) {
                u32* tkey = (u32*) key;
                priv->key0[0] = tkey[0];