Catégorie : Linux

MIPS: Lasat: 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(…) { } // …

Lire la suite

tty: serial: 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(…) { } // …

Lire la suite

staging: panel: 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(…) { } // …

Lire la suite

atm: 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(…) { } // …

Lire la suite

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(…) { } // …

Lire la suite

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 …

Lire la suite

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 +– …

Lire la suite

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; …

Lire la suite

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 …

Lire la suite

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 …

Lire la suite