aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/me4000/me4000.c2
-rw-r--r--drivers/staging/wlan-ng/p80211wext.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/me4000/me4000.c b/drivers/staging/me4000/me4000.c
index 0394e270927..0ac04b7f34b 100644
--- a/drivers/staging/me4000/me4000.c
+++ b/drivers/staging/me4000/me4000.c
@@ -1180,7 +1180,7 @@ static int me4000_xilinx_download(struct me4000_info *info)
1180 1180
1181 /* Wait until /INIT pin is set */ 1181 /* Wait until /INIT pin is set */
1182 udelay(20); 1182 udelay(20);
1183 if (!inl(info->plx_regbase + PLX_INTCSR) & 0x20) { 1183 if (!(inl(info->plx_regbase + PLX_INTCSR) & 0x20)) {
1184 printk(KERN_ERR "%s:Can't init Xilinx\n", __func__); 1184 printk(KERN_ERR "%s:Can't init Xilinx\n", __func__);
1185 return -EIO; 1185 return -EIO;
1186 } 1186 }
diff --git a/drivers/staging/wlan-ng/p80211wext.c b/drivers/staging/wlan-ng/p80211wext.c
index b2c9ea25fa4..338028ae289 100644
--- a/drivers/staging/wlan-ng/p80211wext.c
+++ b/drivers/staging/wlan-ng/p80211wext.c
@@ -1580,7 +1580,7 @@ static int p80211wext_set_encodeext(struct net_device *dev,
1580 1580
1581 1581
1582 if ( ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY ) { 1582 if ( ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY ) {
1583 if ( ! ext->alg & IW_ENCODE_ALG_WEP) { 1583 if (!(ext->alg & IW_ENCODE_ALG_WEP)) {
1584 WLAN_LOG_DEBUG(1,"asked to set a non wep key :("); 1584 WLAN_LOG_DEBUG(1,"asked to set a non wep key :(");
1585 return -EINVAL; 1585 return -EINVAL;
1586 } 1586 }