Articles de cet auteur
Mar 12 2015
staging: sm750fb: remove intialization of static ints
Author: Supriya Karanth <iskaranth@gmail.com> static ints are initialized to 0 by the compiler. Explicit initialization is not necessary. Found by checkpatch.pl – ERROR: do not initialise statics to 0 or NULL changes made using coccinelle script: @@ type T; identifier var; @@ static T var – =0 ; Signed-off-by: Supriya Karanth Signed-off-by: Greg Kroah-Hartman — …
Mar 12 2015
staging: rtl8723au: remove intialization of static ints
Author: Supriya Karanth <iskaranth@gmail.com> static ints are initialized to 0 by the compiler. Explicit initialization is not necessary. Found by checkpatch.pl – ERROR: do not initialise statics to 0 or NULL changes made using coccinelle script: @@ type T; identifier var; @@ static T var – =0 ; Signed-off-by: Supriya Karanth Signed-off-by: Greg Kroah-Hartman — …
Mar 12 2015
staging: rtl8188eu: remove intialization of static ints
Author: Supriya Karanth <iskaranth@gmail.com> static ints are initialized to 0 by the compiler. Explicit initialization is not necessary. Found by checkpatch.pl – ERROR: do not initialise statics to 0 or NULL changes made using coccinelle script: @@ type T; identifier var; @@ static T var – =0 ; Signed-off-by: Supriya Karanth Signed-off-by: Greg Kroah-Hartman — …
Mar 12 2015
staging: i2o: remove intialization of static ints
Author: Supriya Karanth <iskaranth@gmail.com> static ints are initialized to 0 by the compiler. Explicit initialization is not necessary. Found by checkpatch.pl – ERROR: do not initialise statics to 0 or NULL changes made using coccinelle script: @@ type T; identifier var; @@ static T var – =0 ; Signed-off-by: Supriya Karanth Signed-off-by: Greg Kroah-Hartman — …
Mar 12 2015
Staging: rtl8192e: Remove unnecessary variables
Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch removes unnecessary intermediary variables in return lines and uses actual values. Found by coccinelle using this semantic patch: @@ type T; expression expr; identifier r; @@ -T r = expr; … when != r when strict -return r; +return expr; Signed-off-by: Cristina Opriceana Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | …
Mar 12 2015
Staging: rtl8192u: Remove unnecessary variable
Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch detects the cases in which a variable is not modified through the code and it is used as a return value. The variable is detected and removed by coccinelle using the following semantic patch: @@ type T; expression expr; identifier r; constant c; @@ -T r = expr; … …
Mar 11 2015
iscsi-target: don’t export static symbol
Author: Julia Lawall <Julia.Lawall@lip6.fr> The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ type T; identifier f; @@ static T f (…) { … } @@ identifier r.f; declarer name EXPORT_SYMBOL; @@ -EXPORT_SYMBOL(f); // Signed-off-by: Julia Lawall Signed-off-by: Nicholas Bellinger — drivers/target/iscsi/iscsi_target.c | 1 – 1 file changed, 1 deletion(-) …
Mar 11 2015
ARM: cns3xxx: don’t export static symbol
Author: Julia Lawall <Julia.Lawall@lip6.fr> The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ type T; identifier f; @@ static T f (…) { … } @@ identifier r.f; declarer name EXPORT_SYMBOL; @@ -EXPORT_SYMBOL(f); // Signed-off-by: Julia Lawall Signed-off-by: Arnd Bergmann Acked-by: Krzysztof Halasa — arch/arm/mach-cns3xxx/pm.c | 1 – 1 file changed, …
Mar 11 2015
ieee802154: don’t export static symbol
Author: Julia Lawall <Julia.Lawall@lip6.fr> The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ type T; identifier f; @@ static T f (…) { … } @@ identifier r.f; declarer name EXPORT_SYMBOL; @@ -EXPORT_SYMBOL(f); // Signed-off-by: Julia Lawall Acked-by: Alexander Aring Signed-off-by: Marcel Holtmann — net/ieee802154/nl-mac.c | 1 – 1 file changed, …
Mar 11 2015
EDAC, i82443bxgx: Don’t export static symbol
Author: Julia Lawall <Julia.Lawall@lip6.fr> The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ type T; identifier f; @@ static T f (…) { … } @@ identifier r.f; declarer name EXPORT_SYMBOL_GPL; @@ -EXPORT_SYMBOL_GPL(f); // Signed-off-by: Julia Lawall Cc: Doug Thompson Cc: Mauro Carvalho Chehab Cc: Tim Small Link: http://lkml.kernel.org/r/1426092997-30605-13-git-send-email-Julia.Lawall@lip6.fr Signed-off-by: Borislav …