Author's posts
Sep 18 2013
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 …
Sep 18 2013
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 …
Sep 18 2013
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 …
Sep 18 2013
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 …
Sep 18 2013
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 …
Sep 18 2013
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 …
Sep 17 2013
hwmon: (nct6775) fix coccinelle warnings
Author: Fengguang Wu <fengguang.wu@intel.com> drivers/hwmon/nct6775.c:3866: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/nct6775.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-) diff –git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index fdbd632..7a1b6a7 100644 — a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -3862,10 …
Sep 17 2013
drm/msm: Odd PTR_ERR usage
Author: Thomas Meyer <thomas@m3y3r.de> The variable priv->kms is not initialized yet. Found by “scripts/coccinelle/tests/odd_ptr_err.cocci”. PTR_ERR should access the value just tested by IS_ERR. Signed-off-by: Thomas Meyer — drivers/gpu/drm/msm/msm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 008d772..fe03f9c 100644 — a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -199,7 +199,7 @@ static …
Sep 15 2013
staging/lustre: fix coccinelle warnings
Author: Fengguang Wu <fengguang.wu@intel.com> drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c:217:2-3: Unneeded semicolon Removes unneeded semicolon. Generated by: coccinelle/misc/semicolon.cocci CC: Peng Tao Signed-off-by: Fengguang Wu Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c b/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c index e90c8fb..26f3f41 100644 — a/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c +++ b/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c @@ -207,7 +207,7 @@ static void enc_pools_release_free_pages(long npages) p_idx++; …
Sep 12 2013
rtc: simplify devm_request_mem_region/devm_ioremap
Author: Julia Lawall <Julia.Lawall@lip6.fr> Convert the composition of devm_request_mem_region and devm_ioremap to a single call to devm_ioremap_resource. The associated call to platform_get_resource is also simplified and moved next to the new call to devm_ioremap_resource. This was done using a combination of the semantic patches devm_ioremap_resource.cocci and devm_request_and_ioremap.cocci, found in the scripts/coccinelle/api directory. In rtc-lpc32xx.c and …