[PATCH] phy: fix ptr_ret.cocci warnings

2020-11-16 Thread kernel test robot
From: kernel test robot drivers/phy/tegra/phy-tegra194-p2u.c:95: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: 133552bf03ed ("phy: Remove CONFIG_ARCH_* check for related subdir in

Re: [PATCH] phy: fix ptr_ret.cocci warnings

2020-11-17 Thread Thierry Reding
On Tue, Nov 17, 2020 at 07:00:32AM +0800, kernel test robot wrote: > From: kernel test robot > > drivers/phy/tegra/phy-tegra194-p2u.c:95: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_re