Re: [PATCH] fix ptr_ret.cocci warnings

2017-05-15 Thread Stephan Müller
Am Montag, 15. Mai 2017, 12:52:11 CEST schrieb Julia Lawall: Hi Julia, > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by: scripts/coccinelle/api/ptr_ret.cocci Thank you, included -- it will be present in the next release. Ciao Stephan

[PATCH] fix ptr_ret.cocci warnings

2017-05-15 Thread Julia Lawall
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci CC: Stephan Müller Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- Not very important, but the code can be a little simpler. lrng_base.c |5 + 1 file changed, 1 i

Re: [PATCH] fix ptr_ret.cocci warnings

2017-04-24 Thread Daniel Thompson
On 24/04/17 11:57, Lee Jones wrote: On Mon, 17 Apr 2017, Olimpiu Dejeu wrote: On Tue, Mar 21, 2017 at 11:07 AM, Daniel Thompson < daniel.thomp...@linaro.org> wrote: On 21/03/17 14:58, Olimpiu Dejeu wrote: On Fri, Mar 17, 2017 at 10:48 AM, kbuild test robot wrote: drivers/video/backlight/

Re: [PATCH] fix ptr_ret.cocci warnings

2017-04-24 Thread Lee Jones
On Mon, 17 Apr 2017, Olimpiu Dejeu wrote: > On Tue, Mar 21, 2017 at 11:07 AM, Daniel Thompson < > daniel.thomp...@linaro.org> wrote: > > > On 21/03/17 14:58, Olimpiu Dejeu wrote: > > > >> On Fri, Mar 17, 2017 at 10:48 AM, kbuild test robot > >> wrote: > >> > >>> drivers/video/backlight/arcxcnn_b

Re: [PATCH] fix ptr_ret.cocci warnings

2017-03-21 Thread Daniel Thompson
On 21/03/17 14:58, Olimpiu Dejeu wrote: On Fri, Mar 17, 2017 at 10:48 AM, kbuild test robot wrote: drivers/video/backlight/arcxcnn_bl.c:183:1-3: 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

Re: [PATCH] fix ptr_ret.cocci warnings

2017-03-21 Thread Olimpiu Dejeu
On Fri, Mar 17, 2017 at 10:48 AM, kbuild test robot wrote: > drivers/video/backlight/arcxcnn_bl.c:183:1-3: 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: Olimpiu Dejeu > Signed

[PATCH] fix ptr_ret.cocci warnings

2017-03-17 Thread kbuild test robot
drivers/video/backlight/arcxcnn_bl.c:183:1-3: 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: Olimpiu Dejeu Signed-off-by: Fengguang Wu --- arcxcnn_bl.c |5 + 1 file changed, 1 in