Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1629422
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] fix ptr_ret.cocci warnings |
| Date | 2017-04-24 13:00 +0200 |
| Message-ID | <tzJSN-5YI-9@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <tlnfs-3Ul-19@gated-at.bofh.it> <tm1FU-8kN-23@gated-at.bofh.it> <tntqq-4H9-3@gated-at.bofh.it> <tntA6-4ZS-27@gated-at.bofh.it> <tzJSN-5YI-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 17 Apr 2017, Olimpiu Dejeu wrote: > On Tue, Mar 21, 2017 at 11:07 AM, Daniel Thompson < > daniel.thompson@linaro.org> wrote: > > > On 21/03/17 14:58, Olimpiu Dejeu wrote: > > > >> On Fri, Mar 17, 2017 at 10:48 AM, kbuild test robot <lkp@intel.com> > >> 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 <olimpiu@arcticsand.com> > >>> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> > >>> --- > >>> > >>> arcxcnn_bl.c | 5 +---- > >>> 1 file changed, 1 insertion(+), 4 deletions(-) > >>> > >>> --- a/drivers/video/backlight/arcxcnn_bl.c > >>> +++ b/drivers/video/backlight/arcxcnn_bl.c > >>> @@ -180,10 +180,7 @@ static int arcxcnn_backlight_register(st > >>> > >>> lp->bl = devm_backlight_device_register(lp->dev, name, lp->dev, > >>> lp, > >>> &arcxcnn_bl_ops, props); > >>> - if (IS_ERR(lp->bl)) > >>> - return PTR_ERR(lp->bl); > >>> - > >>> - return 0; > >>> + return PTR_ERR_OR_ZERO(lp->bl); > >>> } > >>> > >>> static void arcxcnn_parse_dt(struct arcxcnn *lp) > >>> > >> > >> Acked-by: Olimpiu Dejeu <olimpiu@arcticsand.com> > >> > > > > Glad you approve! Could you apply this change and re-post the patch > > series? Thanks. > > > > > > Daniel. > > > > > Applied change, re-posted series on March 21st. No sure what next. Please > advise. Thanks. Yes you did. Daniel, do you see v9? FYI, if this happens again, it's best to wait a couple of weeks then send the patch again like "[RESEND v9] ..." to gain attention. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] fix ptr_ret.cocci warnings Lee Jones <lee.jones@linaro.org> - 2017-04-24 13:00 +0200 Re: [PATCH] fix ptr_ret.cocci warnings Daniel Thompson <daniel.thompson@linaro.org> - 2017-04-24 13:30 +0200
csiph-web