aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/orinoco/hermes.c2
-rw-r--r--drivers/net/wireless/rtl818x/rtl8180_dev.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco/hermes.c b/drivers/net/wireless/orinoco/hermes.c
index f2c918c2572d..1a2fca76fd3c 100644
--- a/drivers/net/wireless/orinoco/hermes.c
+++ b/drivers/net/wireless/orinoco/hermes.c
@@ -469,7 +469,7 @@ int hermes_read_ltv(hermes_t *hw, int bap, u16 rid, unsigned bufsize,
469 u16 rlength, rtype; 469 u16 rlength, rtype;
470 unsigned nwords; 470 unsigned nwords;
471 471
472 if ((bufsize < 0) || (bufsize % 2)) 472 if (bufsize % 2)
473 return -EINVAL; 473 return -EINVAL;
474 474
475 err = hermes_docmd_wait(hw, HERMES_CMD_ACCESS, rid, NULL); 475 err = hermes_docmd_wait(hw, HERMES_CMD_ACCESS, rid, NULL);
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c
index 47521c5b6f91..09f46abc730a 100644
--- a/drivers/net/wireless/rtl818x/rtl8180_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c
@@ -281,7 +281,7 @@ static int rtl8180_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
281 (ieee80211_get_tx_rate(dev, info)->bitrate * 2) / 10); 281 (ieee80211_get_tx_rate(dev, info)->bitrate * 2) / 10);
282 remainder = (16 * (skb->len + 4)) % 282 remainder = (16 * (skb->len + 4)) %
283 ((ieee80211_get_tx_rate(dev, info)->bitrate * 2) / 10); 283 ((ieee80211_get_tx_rate(dev, info)->bitrate * 2) / 10);
284 if (remainder > 0 && remainder <= 6) 284 if (remainder <= 6)
285 plcp_len |= 1 << 15; 285 plcp_len |= 1 << 15;
286 } 286 }
287 287