lkml.org 
[lkml]   [2019]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] rtc: pcf8523: fix ptr_ret.cocci warnings
Hi,

2019年12月17日(火) 8:04 kbuild test robot <lkp@intel.com>:
>
> From: kbuild test robot <lkp@intel.com>
>
> drivers/rtc/rtc-pcf8523.c:361: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
>
> Fixes: 93966243cf90 ("rtc: pcf8523: Remove struct pcf8523")
> CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> Signed-off-by: kbuild test robot <lkp@intel.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

Best regards,
Nobuhiro

\
 
 \ /
  Last update: 2019-12-17 12:10    [W:0.096 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site