Category: Linux

[media] dvb: remove unnecessary code

Author: Greg Dietsche <gregory.dietsche@cuw.edu> remove unnecessary code that matches this coccinelle pattern if (…) return ret; return ret; Signed-off-by: Greg Dietsche Signed-off-by: Mauro Carvalho Chehab — drivers/media/dvb/frontends/cx24116.c | 6 +—– 1 file changed, 1 insertion(+), 5 deletions(-)   diff –git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c index 95c6465..ccd0525 100644 — a/drivers/media/dvb/frontends/cx24116.c +++ b/drivers/media/dvb/frontends/cx24116.c @@ -1452,11 +1452,7 @@ tuned: /* …

Continue reading

e1000: remove unnecessary code

Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Compile tested. remove unnecessary code that matches this coccinelle pattern if (…) return ret; return ret; Signed-off-by: Greg Dietsche Signed-off-by: David S. Miller — drivers/net/e1000/e1000_hw.c | 7 +—— 1 file changed, 1 insertion(+), 6 deletions(-)   diff –git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index 7501d97..1698622 100644 — a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c @@ -3080,7 +3080,6 @@ …

Continue reading

net: icplus: remove unnecessary code

Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Compile tested. remove unnecessary code that matches this coccinelle pattern if (…) return ret; return ret; Signed-off-by: Greg Dietsche Signed-off-by: David S. Miller — drivers/net/phy/icplus.c | 6 +—– 1 file changed, 1 insertion(+), 5 deletions(-)   diff –git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index 9a09e24..d4cbc29 100644 — a/drivers/net/phy/icplus.c +++ b/drivers/net/phy/icplus.c @@ -109,11 +109,7 @@ …

Continue reading

staging: remove unnecessary code

Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Compile tested. remove unnecessary code that matches this coccinelle pattern if (…) return ret; return ret; Signed-off-by: Greg Dietsche Acked-by: Franky Lin Signed-off-by: Greg Kroah-Hartman — drivers/staging/bcm/Misc.c | 10 ++——– drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 8 +——- drivers/staging/comedi/comedi_fops.c | 2 +- drivers/staging/comedi/drivers/usbdux.c | 5 +—- drivers/staging/tm6000/tm6000-cards.c | 6 +—– 5 files changed, 6 insertions(+), …

Continue reading

net: Remove casts of void *

Author: Joe Perches <joe@perches.com> Unnecessary casts of void * clutter the code. These are the remainder casts after several specific patches to remove netdev_priv and dev_priv. Done via coccinelle script: $ cat cast_void_pointer.cocci @@ type T; T *pt; void *pv; @@ – pt = (T *)pv; + pt = pv; Signed-off-by: Joe Perches Acked-by: Paul …

Continue reading

spi: Convert uses of struct resource * to resource_size(ptr)

Author: Joe Perches <joe@perches.com> Done via coccinelle scripts like: @@ struct resource *ptr; @@ – ptr->end – ptr->start + 1 + resource_size(ptr) and some grep and typing. Mostly uncompiled, no cross-compilers. Signed-off-by: Joe Perches Signed-off-by: Grant Likely — drivers/spi/spi-ath79.c | 2 +- drivers/spi/spi-omap2-mcspi.c | 10 +++++—– drivers/spi/spi-orion.c | 6 +++— drivers/spi/spi-ppc4xx.c | 2 +- drivers/spi/spi-tegra.c …

Continue reading

treewide: Convert uses of struct resource to resource_size(ptr)

Author: Joe Perches <joe@perches.com> Several fixes as well where the +1 was missing. Done via coccinelle scripts like: @@ struct resource *ptr; @@ – ptr->end – ptr->start + 1 + resource_size(ptr) and some grep and typing. Mostly uncompiled, no cross-compilers. Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina — arch/arm/common/scoop.c | 2 +- arch/arm/mach-at91/at91sam9261_devices.c | 2 +- …

Continue reading

hwrng: nomadik – add missing clk_put

Author: Julia Lawall <julia@diku.dk> Jump to the end of the function for the clk_disable and clk_put rather than returning directly. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression e1,e2; statement S; @@ e1 = clk_get@p1(…); … when != e1 = e2 when != clk_put(e1) …

Continue reading

hwrng: omap – add missing clk_put

Author: Julia Lawall <julia@diku.dk> Convert a return to a jump to an existing label that calls clk_put. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression e1,e2; statement S; @@ e1 = clk_get@p1(…); … when != e1 = e2 when != clk_put(e1) when any if …

Continue reading

[CPUFREQ] s5pv210-cpufreq.c: Add missing clk_put

Author: Julia Lawall <julia@diku.dk> The successive calls to clk_get each call clk_put in the case of failure, but this is not done for subsequent error handling code. The calls to clk_get are moved to the end of the function, and appropriate gotos are added. A simplified version of the semantic match that finds this problem …

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.