Author: Fabio Estevam <fabio.estevam@freescale.com> Simplify a trivial if-return sequence. Possibly combine with a preceding function call. The semantic patch that makes this change is available in scripts/coccinelle/misc/simple_return.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Signed-off-by: Ulf Hansson — drivers/mmc/card/mmc_test.c | 100 +++++++————————————- 1 file changed, 15 insertions(+), 85 deletions(-) …
Catégorie : Linux
May 09 2015
gpu: ipu-v3: ipu-csi: bool test doesn’t need a comparison to false
Author: Fabio Estevam <fabio.estevam@freescale.com> Bool initializations should use true and false. Bool tests don’t need comparisons. Based on contributions from Joe Perches, Rusty Russell and Bruce W Allan. The semantic patch that makes this change is available in scripts/coccinelle/misc/boolinit.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Signed-off-by: Philipp Zabel — …
May 09 2015
spi: spidev: Remove unneeded variable
Author: Fabio Estevam <fabio.estevam@freescale.com> Remove unneeded variable used to store return value. The semantic patch that makes this change is available in scripts/coccinelle/misc/returnvar.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown — drivers/spi/spidev.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/spi/spidev.c b/drivers/spi/spidev.c …
May 09 2015
ASoC: fsl: imx-mc13783: Simplify trivial if-return sequence
Author: Fabio Estevam <fabio.estevam@freescale.com> Simplify a trivial if-return sequence. Possibly combine with a preceding function call. The semantic patch that makes this change is available in scripts/coccinelle/misc/simple_return.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Acked-by: Timur Tabi Signed-off-by: Mark Brown — sound/soc/fsl/imx-mc13783.c | 6 +—– 1 file changed, 1 insertion(+), …
May 09 2015
ASoC: fsl: fsl_dma: Use true/false for boolean init
Author: Fabio Estevam <fabio.estevam@freescale.com> Bool initializations should use true and false. Bool tests don’t need comparisons. Based on contributions from Joe Perches, Rusty Russell and Bruce W Allan. The semantic patch that makes this change is available in scripts/coccinelle/misc/boolinit.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Acked-by: Timur Tabi Signed-off-by: …
May 09 2015
usb: chipidea: usbmisc_imx: Remove unneeded semicolon
Author: Fabio Estevam <fabio.estevam@freescale.com> Remove unneeded semicolon. The semantic patch that makes this change is available in scripts/coccinelle/misc/semicolon.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Signed-off-by: Peter Chen — drivers/usb/chipidea/usbmisc_imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c index 140945c..3cefd49 100644 — a/drivers/usb/chipidea/usbmisc_imx.c …
May 09 2015
ARM: imx: gpc: Remove .owner field
Author: Fabio Estevam <fabio.estevam@freescale.com> This platform_driver does not need to set an owner as it will be populated by the driver core. The semantic patch that makes this change is available in scripts/coccinelle/api/platform_no_drv_owner.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Signed-off-by: Shawn Guo — arch/arm/mach-imx/gpc.c | 1 – 1 file …
May 09 2015
staging: lustre: cl_page: delete empty macros
Author: Julia Lawall <Julia.Lawall@lip6.fr> CS_PAGE_INC etc. do nothing, so remove them. The semantic patch that performs this transformation is as follows: (http://coccinelle.lip6.fr/) // @@ expression o,item,state; @@ ( – CS_PAGE_INC(o, item); | – CS_PAGE_DEC(o, item); | – CS_PAGESTATE_INC(o, state); | – CS_PAGESTATE_DEC(o, state); ) // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/obdclass/cl_page.c | 17 …
May 03 2015
staging/lustre/ptlrpc: Replace OBD_CPT_ALLOC etc by kzalloc_node
Author: Julia Lawall <Julia.Lawall@lip6.fr> Replace OBD_CPT_ALLOC, OBD_CPT_ALLOC_PTR, and OBD_CPT_ALLOC_GFP by corresponding calls to kzalloc_node. The semantic patch for the OBD_CPT_ALLOC case is as follows: (http://coccinelle.lip6.fr/). // @@ expression ptr,cptab,cpt,size; @@ – OBD_CPT_ALLOC(ptr, cptab, cpt, size) + ptr = kzalloc_node(size, GFP_NOFS, cfs_cpt_spread_node(cptab, cpt)) // Note that the original OBD macros would check if the cptab argument …
May 03 2015
drivers: staging: lustre: lustre: Replace OBD_CPT_ALLOC etc by kzalloc_node
Author: Julia Lawall <Julia.Lawall@lip6.fr> Replace OBD_CPT_ALLOC, OBD_CPT_ALLOC_PTR, and OBD_CPT_ALLOC_GFP by corresponding calls to kzalloc_node. The semantic patch for the OBD_CPT_ALLOC case is as follows: (http://coccinelle.lip6.fr/). // @@ expression ptr,cptab,cpt,size; @@ – OBD_CPT_ALLOC(ptr, cptab, cpt, size) + ptr = kzalloc_node(size, GFP_NOFS, cfs_cpt_spread_node(cptab, cpt)) // Note that the original OBD macros would check if the cptab argument …