summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/core.c
diff options
context:
space:
mode:
authorJoe Perches2014-03-24 21:15:40 +0100
committerJohn W. Linville2014-03-27 19:20:05 +0100
commit1851cb4a0f08ba0600103203c4b52e53c744f59c (patch)
tree307ef25b2e01f757db84972c3c0bcd608dccbea1 /drivers/net/wireless/rtlwifi/core.c
parentmwifiex: Remove casts of pointer to same type (diff)
downloadkernel-qcow2-linux-1851cb4a0f08ba0600103203c4b52e53c744f59c.tar.gz
kernel-qcow2-linux-1851cb4a0f08ba0600103203c4b52e53c744f59c.tar.xz
kernel-qcow2-linux-1851cb4a0f08ba0600103203c4b52e53c744f59c.zip
rtlwifi: Remove casts of pointer to same type
Casting a pointer to a pointer of the same type is pointless, so remove these unnecessary casts. Around these changes: o Remove unnecessary parentheses o Use consistent dereference style (change ptr[0] to *ptr) o Argument alignment Done via coccinelle script: (and some typing) $ cat typecast_2.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/core.c')
-rw-r--r--drivers/net/wireless/rtlwifi/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c
index ded691f76f2f..4ec424f26672 100644
--- a/drivers/net/wireless/rtlwifi/core.c
+++ b/drivers/net/wireless/rtlwifi/core.c
@@ -982,7 +982,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
u8 keep_alive = 10;
rtlpriv->cfg->ops->set_hw_reg(hw,
HW_VAR_KEEP_ALIVE,
- (u8 *)(&keep_alive));
+ &keep_alive);
rtlpriv->cfg->ops->set_hw_reg(hw,
HW_VAR_H2C_FW_JOINBSSRPT,