All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michel Lespinasse <michel@lespinasse.org>
To: Michael Roth <michael.roth@amd.com>, Ard Biesheuvel <ardb@kernel.org>
Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org,
	Michel Lespinasse <michel@lespinasse.org>
Subject: [PATCH 3/4] Remove unused variable ret in efi_get_conf_table()
Date: Tue, 30 Aug 2022 18:12:47 -0700	[thread overview]
Message-ID: <20220831011248.28632-4-michel@lespinasse.org> (raw)
In-Reply-To: <20220831011248.28632-1-michel@lespinasse.org>

This avoids a build warning with CONFIG_EFI enabled.

Fixes: 61c14ceda840 (x86/compressed/acpi: Move EFI config table lookup to helper)
Signed-off-by: Michel Lespinasse <michel@lespinasse.org>
---
 arch/x86/boot/compressed/efi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/boot/compressed/efi.c b/arch/x86/boot/compressed/efi.c
index c42ee7874eb9..6ffd22710ed2 100644
--- a/arch/x86/boot/compressed/efi.c
+++ b/arch/x86/boot/compressed/efi.c
@@ -130,7 +130,6 @@ int efi_get_conf_table(struct boot_params *bp, unsigned long *cfg_tbl_pa,
 {
 	unsigned long sys_tbl_pa;
 	enum efi_type et;
-	int ret;
 
 	if (!cfg_tbl_pa || !cfg_tbl_len)
 		return -EINVAL;
-- 
2.20.1


  parent reply	other threads:[~2022-08-31  1:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-31  1:12 [PATCH 0/4] Remove unused variables resulting in CONFIG_EFI warnings Michel Lespinasse
2022-08-31  1:12 ` [PATCH 1/4] Remove unused variable et in efi_get_system_table() Michel Lespinasse
2022-09-05 10:18   ` Ard Biesheuvel
2022-08-31  1:12 ` [PATCH 2/4] Remove unused variable nr_tables in efi_get_rsdp_addr() Michel Lespinasse
2022-08-31  1:12 ` Michel Lespinasse [this message]
2022-09-05 10:20   ` [PATCH 3/4] Remove unused variable ret in efi_get_conf_table() Ard Biesheuvel
2022-08-31  1:12 ` [PATCH 4/4] Remove unused variable ret in __efi_get_rsdp_addr() Michel Lespinasse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220831011248.28632-4-michel@lespinasse.org \
    --to=michel@lespinasse.org \
    --cc=ardb@kernel.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.roth@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.