Re: [PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

2015-03-05 Thread Javi Merino
On Thu, Mar 05, 2015 at 04:46:13AM +, Eduardo Valentin wrote: > On Thu, Mar 05, 2015 at 04:34:02AM +0800, kbuild test robot wrote: > > drivers/thermal/cpu_cooling.c:463:18-24: WARNING: PTR_ERR_OR_ZERO can be > > used > > > > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > >

Re: [PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

2015-03-05 Thread Javi Merino
On Thu, Mar 05, 2015 at 04:46:13AM +, Eduardo Valentin wrote: On Thu, Mar 05, 2015 at 04:34:02AM +0800, kbuild test robot wrote: drivers/thermal/cpu_cooling.c:463:18-24: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated

Re: [PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

2015-03-04 Thread Eduardo Valentin
On Thu, Mar 05, 2015 at 04:34:02AM +0800, kbuild test robot wrote: > drivers/thermal/cpu_cooling.c:463:18-24: WARNING: PTR_ERR_OR_ZERO can be used > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > CC: Javi Merino >

[PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

2015-03-04 Thread kbuild test robot
drivers/thermal/cpu_cooling.c:463:18-24: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: Javi Merino Signed-off-by: Fengguang Wu --- cpu_cooling.c |2 +- 1 file changed, 1

[PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

2015-03-04 Thread kbuild test robot
drivers/thermal/cpu_cooling.c:463:18-24: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: Javi Merino javi.mer...@arm.com Signed-off-by: Fengguang Wu fengguang...@intel.com --- cpu_cooling.c

Re: [PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

2015-03-04 Thread Eduardo Valentin
On Thu, Mar 05, 2015 at 04:34:02AM +0800, kbuild test robot wrote: drivers/thermal/cpu_cooling.c:463:18-24: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: Javi Merino