Category: Linux

staging: lustre: lnet: lib-ptl.c: put constant on the right of binary operator

Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …

Continue reading

staging: lustre: include: put constant on the right of binary operator

Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …

Continue reading

USB: rewrite isd200_init_info for readability

Author: Kris Borer <kborer@gmail.com> Previously, Coccinelle would issue the following false positive: isd200.c:1478:14-18: ERROR: reference preceded by free on line 1472 This change rewrites the isd200_init_info function to have more explicit execution pathways to make it easier for scripts and humans to parse. Signed-off-by: Kris Borer Signed-off-by: Greg Kroah-Hartman — drivers/usb/storage/isd200.c | 30 +++++++++++++—————– 1 …

Continue reading

ASoC: ics43432: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/codecs/ics43432.c:66: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: Ricard Wanderlof Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — sound/soc/codecs/ics43432.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/sound/soc/codecs/ics43432.c b/sound/soc/codecs/ics43432.c …

Continue reading

ASoC: rockchip: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/rockchip/rockchip_rt5645.c:214: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 Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — sound/soc/rockchip/rockchip_rt5645.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c index adfe98c..274b9b3 100644 …

Continue reading

ASoC: rockchip: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/rockchip/rockchip_max98090.c:225: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 Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — sound/soc/rockchip/rockchip_max98090.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c index acace20..562e7ea 100644 …

Continue reading

serial: 68328serial: Use NULL for pointers

Author: Fabio Estevam <fabio.estevam@freescale.com> Compare pointer-typed values to NULL rather than 0 The semantic patch that makes this change is available in scripts/coccinelle/null/badzero.cocci. Signed-off-by: Fabio Estevam Signed-off-by: Greg Kroah-Hartman — drivers/tty/serial/68328serial.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328serial.c index 748c18f..9ba0c93 100644 — a/drivers/tty/serial/68328serial.c +++ b/drivers/tty/serial/68328serial.c @@ -560,8 …

Continue reading

mmc: sdhci-of-at91: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: ludovic.desroches@atmel.com Signed-off-by: Fengguang Wu Signed-off-by: Ulf Hansson — drivers/mmc/host/sdhci-of-at91.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c index 7a9f4b1..d155664 100644 — a/drivers/mmc/host/sdhci-of-at91.c +++ b/drivers/mmc/host/sdhci-of-at91.c @@ -177,7 +177,6 @@ static int …

Continue reading

pinctrl: digicolor: convert null test to IS_ERR test

Author: Julia Lawall <Julia.Lawall@lip6.fr> Since commit 323de9efdf3e (“pinctrl: make pinctrl_register() return proper error code”), pinctrl_register returns an error code rather than NULL on failure. Update a driver that was introduced more recently. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression e,e1,e2; @@ e = pinctrl_register(…) … when != e …

Continue reading

pinctrl: qcom: ssbi: convert null test to IS_ERR test

Author: Julia Lawall <Julia.Lawall@lip6.fr> Since commit 323de9efdf3e (“pinctrl: make pinctrl_register() return proper error code”), pinctrl_register returns an error code rather than NULL on failure. Update some drivers that were introduced more recently. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression e,e1,e2; @@ e = pinctrl_register(…) … when != e …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.