Category: Linux

staging: r8188eu: Cocci spatch “noderef”

Author: Thomas Meyer <thomas@m3y3r.de> sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch “misc/noderef.cocci” Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c index cd4100f..95953eb 100644 — a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c @@ -6973,7 …

Continue reading

staging: octeon-usb: Cocci spatch “noderef”

Author: Thomas Meyer <thomas@m3y3r.de> sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch “misc/noderef.cocci” Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/octeon-usb/cvmx-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/octeon-usb/cvmx-usb.c b/drivers/staging/octeon-usb/cvmx-usb.c index d7b3c82..45dfe94 100644 — a/drivers/staging/octeon-usb/cvmx-usb.c +++ b/drivers/staging/octeon-usb/cvmx-usb.c @@ -604,7 …

Continue reading

xtensa: Cocci spatch “noderef”

Author: Thomas Meyer <thomas@m3y3r.de> sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch “misc/noderef.cocci” Signed-off-by: Thomas Meyer Signed-off-by: Chris Zankel — arch/xtensa/platforms/iss/network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)   diff –git a/arch/xtensa/platforms/iss/network.c b/arch/xtensa/platforms/iss/network.c index 56f88b7..e9e1aad 100644 — a/arch/xtensa/platforms/iss/network.c +++ b/arch/xtensa/platforms/iss/network.c @@ -737,7 …

Continue reading

iio: at91_adc: Cocci spatch “noderef”

Author: Thomas Meyer <thomas@m3y3r.de> sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch “misc/noderef.cocci” Signed-off-by: Thomas Meyer Signed-off-by: Jonathan Cameron — drivers/iio/adc/at91_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 6da5ebb..79c53b8 100644 — a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c @@ -279,7 …

Continue reading

hwmon: (jc42) fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/hwmon/jc42.c:521:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Guenter Roeck Signed-off-by: Fengguang Wu Signed-off-by: Guenter Roeck — drivers/hwmon/jc42.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   diff –git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index f362cea..6013611 100644 — a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -518,10 …

Continue reading

hwmon: (ltc4261) fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/hwmon/ltc4261.c:243:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Guenter Roeck Signed-off-by: Fengguang Wu Signed-off-by: Guenter Roeck — drivers/hwmon/ltc4261.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   diff –git a/drivers/hwmon/ltc4261.c b/drivers/hwmon/ltc4261.c index 6c50db9..0becd69 100644 — a/drivers/hwmon/ltc4261.c +++ b/drivers/hwmon/ltc4261.c @@ -240,10 …

Continue reading

hwmon: (lm95234) fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/hwmon/lm95234.c:704:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Guenter Roeck Signed-off-by: Fengguang Wu Signed-off-by: Guenter Roeck — drivers/hwmon/lm95234.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   diff –git a/drivers/hwmon/lm95234.c b/drivers/hwmon/lm95234.c index cf87507..411202b 100644 — a/drivers/hwmon/lm95234.c +++ b/drivers/hwmon/lm95234.c @@ -701,10 …

Continue reading

hwmon: (max6697) fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/hwmon/max6697.c:649:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Guenter Roeck Signed-off-by: Fengguang Wu Signed-off-by: Guenter Roeck — drivers/hwmon/max6697.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   diff –git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c index 0af910a..7fd3eaf 100644 — a/drivers/hwmon/max6697.c +++ b/drivers/hwmon/max6697.c @@ -646,10 …

Continue reading

hwmon: (max6642 fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/hwmon/max6642.c:299:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Guenter Roeck Signed-off-by: Fengguang Wu Signed-off-by: Guenter Roeck — drivers/hwmon/max6642.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   diff –git a/drivers/hwmon/max6642.c b/drivers/hwmon/max6642.c index 3d61f8d..8326fbd 100644 — a/drivers/hwmon/max6642.c +++ b/drivers/hwmon/max6642.c @@ -296,10 …

Continue reading

hwmon: (ds1621) fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/hwmon/ds1621.c:381:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Guenter Roeck Signed-off-by: Fengguang Wu Signed-off-by: Guenter Roeck — drivers/hwmon/ds1621.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   diff –git a/drivers/hwmon/ds1621.c b/drivers/hwmon/ds1621.c index 5e398c9..872d767 100644 — a/drivers/hwmon/ds1621.c +++ b/drivers/hwmon/ds1621.c @@ -378,10 …

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.