diff options
author | Joe Perches <joe@perches.com> | 2014-03-24 18:46:20 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-03-27 19:20:05 +0100 |
commit | 9cb76aa994682c7a5584cf4a03aeedd7ef1204bd (patch) | |
tree | 7733dfba8ae7e0f8ddd0ce024f119a9b8d6f9502 /drivers/net/wireless/rtlwifi/pci.c | |
parent | rtl8180: rationalize TX queues (diff) | |
download | linux-9cb76aa994682c7a5584cf4a03aeedd7ef1204bd.tar.xz linux-9cb76aa994682c7a5584cf4a03aeedd7ef1204bd.zip |
rtlwifi: Remove addressof casts to same type
Using addressof then casting to the original type is pointless,
so remove these unnecessary casts.
Done via coccinelle script:
$ cat typecast.cocci
@@
type T;
T foo;
@@
- (T *)&foo
+ &foo
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index f26f4ffc771d..7d711708d2f3 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -1509,10 +1509,10 @@ static int rtl_pci_tx(struct ieee80211_hw *hw, if (rtlpriv->use_new_trx_flow) { rtlpriv->cfg->ops->set_desc(hw, (u8 *)pdesc, true, - HW_DESC_OWN, (u8 *)&hw_queue); + HW_DESC_OWN, &hw_queue); } else { rtlpriv->cfg->ops->set_desc(hw, (u8 *)pdesc, true, - HW_DESC_OWN, (u8 *)&temp_one); + HW_DESC_OWN, &temp_one); } if ((ring->entries - skb_queue_len(&ring->queue)) < 2 && |