[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171201101525.GH23501@stefanha-x1.localdomain>
Date: Fri, 1 Dec 2017 10:15:25 +0000
From: Stefan Hajnoczi <stefanha@...il.com>
To: Vasyl Gomonovych <gomonovych@...il.com>
Cc: somlo@....edu, mst@...hat.com, qemu-devel@...gnu.org,
linux-kernel@...r.kernel.org
Subject: Re: [Qemu-devel] [PATCH] firmware: Use PTR_ERR_OR_ZERO()
On Tue, Nov 28, 2017 at 10:40:27PM +0100, Vasyl Gomonovych wrote:
> Fix ptr_ret.cocci warnings:
> drivers/firmware/efi/efi.c:610: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 <gomonovych@...il.com>
> ---
> drivers/firmware/qemu_fw_cfg.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@...hat.com>
Download attachment "signature.asc" of type "application/pgp-signature" (456 bytes)
Powered by blists - more mailing lists