From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756803AbdLOPGa (ORCPT ); Fri, 15 Dec 2017 10:06:30 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:40592 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756788AbdLOPG2 (ORCPT ); Fri, 15 Dec 2017 10:06:28 -0500 X-Google-Smtp-Source: ACJfBov6MKLA/nPLPohTzKxRPzXYqPQ7HwID46BPHRG0XU4unn6cpSAhyd2Enl++u7cB8vJt+DwzqQ== Date: Fri, 15 Dec 2017 15:06:25 +0000 From: Matt Fleming To: Vasyl Gomonovych Cc: ard.biesheuvel@linaro.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] efi: Use PTR_ERR_OR_ZERO() Message-ID: <20171215150625.GA3204@codeblueprint.co.uk> References: <1511905177-29340-1-git-send-email-gomonovych@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511905177-29340-1-git-send-email-gomonovych@gmail.com> User-Agent: Mutt/1.5.24+42 (6e565710a064) (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Nov, at 10:39:37PM, 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 > --- > drivers/firmware/efi/efi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks. Applied to the 'next' branch.