Re: [PATCH] remoteproc: qcom: Use PTR_ERR_OR_ZERO() in glink prob

2017-11-28 Thread Bjorn Andersson
On Tue 28 Nov 14:32 PST 2017, Vasyl Gomonovych wrote: > Fix ptr_ret.cocci warnings: > drivers/remoteproc/qcom_common.c:60:8-14: 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 > > Signed-of

[PATCH] remoteproc: qcom: Use PTR_ERR_OR_ZERO() in glink prob

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/remoteproc/qcom_common.c:60:8-14: 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 Signed-off-by: Vasyl Gomonovych --- drivers/remoteproc/qcom_common.c | 2 +- 1

Re: [PATCH] remoteproc: qcom: Use PTR_ERR_OR_ZERO

2017-08-29 Thread Bjorn Andersson
On Tue 29 Aug 06:43 PDT 2017, Himanshu Jha wrote: > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > Applied for v4.14 Thank you, Bjorn > Signed-off-by: Himanshu Jha > --- > drivers/remoteproc/qcom_adsp_pil.c | 5 + > drivers/remoteproc/qcom_common.c | 2 +- > 2 files change

[PATCH] remoteproc: qcom: 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/remoteproc/qcom_adsp_pil.c | 5 + drivers/remoteproc/qcom_common.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/remoteproc/qcom_adsp_pil.c b/drivers/remotepr