Re: [PATCH] PCI: dwc: Use PTR_ERR_OR_ZERO() in five functions

2019-10-15 Thread Lorenzo Pieralisi
On Fri, Sep 06, 2019 at 08:50:07PM +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 6 Sep 2019 20:40:06 +0200 > > Simplify these function implementations by using a known function. > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Signed-off-by: Markus Elfring > --- >

Re: [PATCH] PCI: dwc: Use PTR_ERR_OR_ZERO() in five functions

2019-09-06 Thread Andrew Murray
On Fri, Sep 06, 2019 at 08:50:07PM +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 6 Sep 2019 20:40:06 +0200 > > Simplify these function implementations by using a known function. > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Signed-off-by: Markus Elfring Thanks

[PATCH] PCI: dwc: Use PTR_ERR_OR_ZERO() in five functions

2019-09-06 Thread Markus Elfring
From: Markus Elfring Date: Fri, 6 Sep 2019 20:40:06 +0200 Simplify these function implementations by using a known function. Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Markus Elfring --- drivers/pci/controller/dwc/pci-exynos.c | 5 +

[PATCH] PCI: dwc: Use PTR_ERR_OR_ZERO

2017-08-29 Thread Himanshu Jha
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: Himanshu Jha --- drivers/pci/dwc/pci-exynos.c | 5 + drivers/pci/dwc/pcie-kirin.c | 10 ++ drivers/pci/dwc/pcie-qcom.c | 5 + 3 files changed, 4 insertions(+), 16

[PATCH] PCI: dwc: Use PTR_ERR_OR_ZERO

2017-08-29 Thread Himanshu Jha
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: Himanshu Jha --- drivers/pci/dwc/pci-exynos.c | 5 + drivers/pci/dwc/pcie-kirin.c | 10 ++ drivers/pci/dwc/pcie-qcom.c | 5 + 3 files changed, 4 insertions(+), 16 deletions(-) diff --git