Articles de cet auteur
Nov 30 2014
crypto: powerpc – replace memset by memzero_explicit
Author: Julia Lawall <Julia.Lawall@lip6.fr> Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; type T; @@ { … when any …
Nov 30 2014
crypto: sha – replace memset by memzero_explicit
Author: Julia Lawall <Julia.Lawall@lip6.fr> Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; type T; @@ { … when any …
Nov 30 2014
crypto: sparc – replace memset by memzero_explicit
Author: Julia Lawall <Julia.Lawall@lip6.fr> Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; type T; @@ { … when any …
Nov 29 2014
net-PA Semi: Deletion of unnecessary checks before the function call « pci_dev_put »
Author: Markus Elfring <elfring@users.sourceforge.net> The pci_dev_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Acked-by: Olof Johansson Acked-by: Luis R. Rodriguez Signed-off-by: David S. Miller — drivers/net/ethernet/pasemi/pasemi_mac.c | 6 ++—- 1 …
Nov 29 2014
spi/txx9: Deletion of an unnecessary check before the function call « clk_disable »
Author: Markus Elfring <elfring@users.sourceforge.net> The clk_disable() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mark Brown — drivers/spi/spi-txx9.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Nov 29 2014
net-ipvlan: Deletion of an unnecessary check before the function call « free_percpu »
Author: Markus Elfring <elfring@users.sourceforge.net> The free_percpu() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Acked-by: Mahesh Bandewar Signed-off-by: David S. Miller — drivers/net/ipvlan/ipvlan_main.c | 3 +– 1 file changed, 1 insertion(+), …
Nov 29 2014
net: cassini: Deletion of an unnecessary check before the function call « vfree »
Author: Markus Elfring <elfring@users.sourceforge.net> The vfree() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: David S. Miller — drivers/net/ethernet/sun/cassini.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c index …
Nov 28 2014
clk: qcom: fix simple_return.cocci warnings
Author: Fengguang Wu <fengguang.wu@intel.com> drivers/clk/qcom/clk-pll.c:74:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by: Fengguang Wu Signed-off-by: Stephen Boyd — drivers/clk/qcom/clk-pll.c | 6 +—– 1 file changed, 1 insertion(+), 5 deletions(-) diff –git a/drivers/clk/qcom/clk-pll.c b/drivers/clk/qcom/clk-pll.c index b4325f6..245d506 100644 — a/drivers/clk/qcom/clk-pll.c +++ …
Nov 27 2014
ARM: at91: remove legacy IRQ driver and related code
Author: Nicolas Ferre <nicolas.ferre@atmel.com> Remove irc.c and associated header file. The related code was idendified by the CONFIG_OLD_IRQ_AT91 option that was removed previously. It has been spotted by following coccinelle semantic match: @rule1@ expression E; statement S; @@ ( – if (IS_ENABLED(CONFIG_OLD_IRQ_AT91)) S | – if (IS_ENABLED(CONFIG_OLD_IRQ_AT91) && E) S ) Cc: Julia Lawall Signed-off-by: …
Nov 26 2014
usb: chipidea: fix platform_no_drv_owner.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> drivers/usb/chipidea/ci_hdrc_usb2.c:108:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Cc: Antoine Tenart Cc: Peter Chen Signed-off-by: Fengguang Wu Signed-off-by: Greg Kroah-Hartman — drivers/usb/chipidea/ci_hdrc_usb2.c | 1 – 1 file changed, 1 deletion(-) diff …