rtlwifi: rtl8192c{e,u}: Remove some extraneous casts on memcpy commands
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 18 Mar 2011 02:53:01 +0000 (21:53 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Mar 2011 18:15:14 +0000 (14:15 -0400)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192ce/trx.h
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c

index 803adcc80c969539d9ce417ae13752b081998ec8..b0b0b13dd0aebf1065acdba0c2d5784a28dcbb7c 100644 (file)
 #define CLEAR_PCI_TX_DESC_CONTENT(__pdesc, _size)      \
 do {                                                   \
        if (_size > TX_DESC_NEXT_DESC_OFFSET)           \
-               memset((void *)__pdesc, 0, TX_DESC_NEXT_DESC_OFFSET);   \
+               memset(__pdesc, 0, TX_DESC_NEXT_DESC_OFFSET);   \
        else                                            \
-               memset((void *)__pdesc, 0, _size);      \
+               memset(__pdesc, 0, _size);      \
 } while (0);
 
 #define RX_HAL_IS_CCK_RATE(_pdesc)\
index d0b0d43b9a6d546e89b98b2b24e77a8b830dafcb..3f0cb81c424f0e4bf8206723e3b9a1807940f10d 100644 (file)
@@ -656,7 +656,7 @@ void rtl92cu_tx_fill_cmddesc(struct ieee80211_hw *hw,
        struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)(skb->data);
        __le16 fc = hdr->frame_control;
 
-       memset((void *)pdesc, 0, RTL_TX_HEADER_SIZE);
+       memset(pdesc, 0, RTL_TX_HEADER_SIZE);
        if (firstseg)
                SET_TX_DESC_OFFSET(pdesc, RTL_TX_HEADER_SIZE);
        SET_TX_DESC_TX_RATE(pdesc, DESC92C_RATE1M);