]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
carl9170: Remove casts of pointer to same type
authorJoe Perches <joe@perches.com>
Mon, 24 Mar 2014 20:15:38 +0000 (13:15 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2014 18:20:05 +0000 (14:20 -0400)
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/rx.c

index 536bc46a291244e8b743a63fcae41a7d30963b8c..924135b8e57543ea19060b802f122627a42ff904 100644 (file)
@@ -572,7 +572,7 @@ static void carl9170_ps_beacon(struct ar9170 *ar, void *data, unsigned int len)
 
 static void carl9170_ba_check(struct ar9170 *ar, void *data, unsigned int len)
 {
-       struct ieee80211_bar *bar = (void *) data;
+       struct ieee80211_bar *bar = data;
        struct carl9170_bar_list_entry *entry;
        unsigned int queue;