From patchwork Tue Oct 2 04:08:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 977624 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42PQcq1ydRz9sBq for ; Tue, 2 Oct 2018 14:08:43 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id EBC0CC2200F; Tue, 2 Oct 2018 04:08:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_RP_RNBL autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3D588C21FB7; Tue, 2 Oct 2018 04:08:35 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 90263C21FB7; Tue, 2 Oct 2018 04:08:34 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lists.denx.de (Postfix) with ESMTPS id 3734DC21FB5 for ; Tue, 2 Oct 2018 04:08:34 +0000 (UTC) Received: from LPT2.lan ([46.232.147.139]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0Mfn40-1gLR3M0ALM-00N9oL; Tue, 02 Oct 2018 06:08:32 +0200 Received: from LPT2.lan ([46.232.147.139]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0Mfn40-1gLR3M0ALM-00N9oL; Tue, 02 Oct 2018 06:08:32 +0200 From: Heinrich Schuchardt To: Alexander Graf Date: Tue, 2 Oct 2018 06:08:26 +0200 Message-Id: <20181002040826.15700-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:CSaFpZGJuPsFsIm0PlcKzqk5AqZW6Wf0auB1Zj4fK4AoGkdND5i RX2qJ37PmdQQ8/isILUhU9eROKSDboPAGiGOHL99PLCaGXy95BvBY0G+NNHjKQF9rHIHKeB 1xFAl1ohYHFa8cKf2LCK402o3KlUA5kwFMj9o46PjbrZ41reATOUMZNP8qFZPlNzafwbf8u 4Of8CzDS7tiwtat4RzyDw== X-UI-Out-Filterresults: notjunk:1; V01:K0:TLvxZ6m3DQA=:tfD3cFDp0KAf1MnHvl+VLz hX027xyuX6dAeniJ1nVrMhGjvV2PNJ2HnrGVYH3hCemXsX5Cr3JJ66FPxmLPsVmOXmI90DwtV 1PWSzy4f3t4rx4JVd5CygO+adrlwuBmEM304AR+6MmER5UAuG0kIMJvMxFwdI8SlnZ556nj/d DhGc6rpdBETJwcnnFk8on4xbdNLkXkZgXbCZsNy+rPRJsmXW7d4SjJtUdPVrIyTPqkvIr9NwY aHxV9jJQMheAp/6QnbUnaj7jA9TJZ1ga08BW7EalaaErLuIa2KRozMiEBzmvLMM9V5y6gIJrj +FGcmSg1GRgcRMwqgnxX3hTkCnTx7DTBgW5CSciFLruQtZoNdeNYQ5UAOPu3WnZ6bOCRNa6U/ aPFa6V1oCXkMcPf+CTaIPYxdgVMM+TrW4cG++rzJGFyUvsaWgZtjIzcgRISYYl61LUnfNrT4E pYqi2Y+A/1hj9RvKPwoCEKyVwhF/U2ZMx2wesyYeKoQ3OpFAP2gst1Eyf/TkGcqXDfKW9dud1 ht07qn3AZfQVx6JTRcRhFHCrm9TPHnh2ghRaBUm8boflGIli1qw9135+XsZXJe3rfVeura99X t0sSCGNTgvt4Sa9cl9pq8jlad2ytLiXnaWE4dbHeqBNu6DCUMTsIf8ml1lU+hHd+CWO/R7Qnw so/QgDindbksFtMFW7bDYLAjE7j2PJL3qon95F73VwAABB/1pI+wInxQ0iu201EOecQcH9p0K 5mdYSGrruxqddVJswoaFJWb4+qDlBvVi92eOk3CJnyBycF97jMpDBHgrBtTNocG+DsV+nS2C2 cYz0DboYFwvIV5aGETS1PWNxQZStQ== Cc: Tom Rini , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/1] efi_loader: return type efi_console_register() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use a return type that can encompass the return value. This fixes CoverityScan CID 184090. Reported-by: Tom Rini Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 2 +- lib/efi_loader/efi_console.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index 34e44c6677..1417c3588f 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -236,7 +236,7 @@ efi_status_t efi_root_node_register(void); /* Called by bootefi to initialize runtime */ efi_status_t efi_initialize_system_table(void); /* Called by bootefi to make console interface available */ -int efi_console_register(void); +efi_status_t efi_console_register(void); /* Called by bootefi to make all disk storage accessible as EFI objects */ efi_status_t efi_disk_register(void); /* Create handles and protocols for the partitions of a block device */ diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index 7ecdbb1666..0225222a61 100644 --- a/lib/efi_loader/efi_console.c +++ b/lib/efi_loader/efi_console.c @@ -1045,8 +1045,10 @@ static void EFIAPI efi_key_notify(struct efi_event *event, void *context) * efi_console_register() - install the console protocols * * This function is called from do_bootefi_exec(). + * + * Return: status code */ -int efi_console_register(void) +efi_status_t efi_console_register(void) { efi_status_t r; struct efi_object *efi_console_output_obj;