Articles de cet auteur
Mar 26 2014
isdn: replace del_timer by del_timer_sync
Author: Julia Lawall <Julia.Lawall@lip6.fr> Use del_timer_sync to ensure that the timer is stopped on all CPUs before the driver exists. This change was suggested by Thomas Gleixner. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r@ declarer name module_exit; identifier ex; @@ module_exit(ex); @@ identifier r.ex; @@ ex(…) { } // …
Mar 25 2014
i40e: Remove casts of pointer to same type
Author: Joe Perches <joe@perches.com> 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 Tested-by: Kavindya Deegala Signed-off-by: Jeff Kirsher — drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 4 ++– 1 file …
Mar 25 2014
i40e/i40evf: Remove addressof casts to same type
Author: Joe Perches <joe@perches.com> 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 Tested-by: Kavindya Deegala Signed-off-by: Jeff Kirsher — drivers/net/ethernet/intel/i40e/i40e_common.c | 4 ++– drivers/net/ethernet/intel/i40evf/i40e_common.c | 3 +– …
Mar 24 2014
rtlwifi: Remove casts of pointer to same type
Author: Joe Perches <joe@perches.com> 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; …
Mar 24 2014
mwifiex: Remove casts of pointer to same type
Author: Joe Perches <joe@perches.com> 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 Acked-by: Bing Zhao Signed-off-by: John W. Linville — drivers/net/wireless/mwifiex/pcie.c | 6 +++— drivers/net/wireless/mwifiex/scan.c …
Mar 24 2014
carl9170: Remove casts of pointer to same type
Author: Joe Perches <joe@perches.com> 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 Signed-off-by: John W. Linville — drivers/net/wireless/ath/carl9170/rx.c | 2 +- 1 file changed, 1 …
Mar 24 2014
qlcnic: Remove casts of pointer to same type
Author: Joe Perches <joe@perches.com> 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 Acked-by: Shahed Shaikh Signed-off-by: David S. Miller — drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c | 2 +- 1 …
Mar 24 2014
alx: Remove casts of pointer to same type
Author: Joe Perches <joe@perches.com> 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 Signed-off-by: David S. Miller — drivers/net/ethernet/atheros/alx/main.c | 2 +- 1 file changed, 1 …
Mar 24 2014
altera: Remove casts of pointer to same type
Author: Joe Perches <joe@perches.com> 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 Acked-by: Vince Bridgers Signed-off-by: David S. Miller — drivers/net/ethernet/altera/altera_tse_main.c | 4 ++– 1 …
Mar 24 2014
rtlwifi: Remove addressof casts to same type
Author: Joe Perches <joe@perches.com> 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 Signed-off-by: John W. Linville — drivers/net/wireless/rtlwifi/pci.c | 4 ++– drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | 9 ++++—– drivers/net/wireless/rtlwifi/rtl8723ae/hw.c | …