Re: [PATCH] net: hisilicon: fix ptr_ret.cocci warnings

2015-10-21 Thread David Miller
From: kbuild test robot Date: Tue, 20 Oct 2015 14:56:00 +0800 > drivers/net/ethernet/hisilicon/hns/hnae.c:442: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: Arnd Bergm

[PATCH] net: hisilicon: fix ptr_ret.cocci warnings

2015-10-19 Thread kbuild test robot
drivers/net/ethernet/hisilicon/hns/hnae.c:442: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: Arnd Bergmann Signed-off-by: Fengguang Wu --- hnae.c |5 + 1 file changed, 1 ins