2017-11-28 17:56:29

by Leon Romanovsky

[permalink] [raw]
Subject: Re: [PATCH] IB/core: Use PTR_ERR_OR_ZERO()

On Tue, Nov 28, 2017 at 04:18:07PM +0100, Vasyl Gomonovych wrote:
> Fix ptr_ret.cocci warnings:
> drivers/infiniband/core/uverbs_cmd.c:1156: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
>
> Signed-off-by: Vasyl Gomonovych <[email protected]>
> ---
> drivers/infiniband/core/uverbs_cmd.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <[email protected]>


Attachments:
(No filename) (542.00 B)
signature.asc (849.00 B)
Download all attachments