aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-03-24 16:15:39 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-03-27 14:20:05 -0400
commit45d18c562adefe9d807c0ba833affdeff68bad98 (patch)
treec07cbb073aa99f61465c1116c9f627d6b3071a5a /drivers/net/wireless/mwifiex/scan.c
parent8986992de4225871d171e8bdd82abd0eeab978ff (diff)
mwifiex: Remove casts of pointer to same type
Casting a pointer to a pointer of the same type is pointless, so remove these unnecessary casts. Done via coccinelle script: $ cat typecast_2.cocci @@ type T; T *foo; @@ - (T *)foo + foo Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
-rw-r--r--drivers/net/wireless/mwifiex/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index 0e8ca7bab3e7..4e6e75c2de0c 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -1653,7 +1653,7 @@ mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info,
1653 curr_bcn_bytes -= ETH_ALEN; 1653 curr_bcn_bytes -= ETH_ALEN;
1654 1654
1655 if (!ext_scan) { 1655 if (!ext_scan) {
1656 rssi = (s32) *(u8 *)current_ptr; 1656 rssi = (s32) *current_ptr;
1657 rssi = (-rssi) * 100; /* Convert dBm to mBm */ 1657 rssi = (-rssi) * 100; /* Convert dBm to mBm */
1658 current_ptr += sizeof(u8); 1658 current_ptr += sizeof(u8);
1659 curr_bcn_bytes -= sizeof(u8); 1659 curr_bcn_bytes -= sizeof(u8);