lkml.org 
[lkml]   [2020]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: phy: mscc: fix ptr_ret.cocci warnings
From
From: kernel test robot <lkp@intel.com>
Date: Fri, 10 Jul 2020 00:06:18 +0800

> From: kernel test robot <lkp@intel.com>
>
> drivers/net/phy/mscc/mscc_ptp.c:1496: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: 7d272e63e097 ("net: phy: mscc: timestamping and PHC support")
> CC: Antoine Tenart <antoine.tenart@bootlin.com>
> Signed-off-by: kernel test robot <lkp@intel.com>

Applied, thanks.

\
 
 \ /
  Last update: 2020-07-09 22:11    [W:0.025 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site