From: Qiang Ma <maqianga@uniontech.com>
To: ardb@kernel.org, linux@armlinux.org.uk
Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Qiang Ma <maqianga@uniontech.com>
Subject: [PATCH 0/2] Remove duplicate function calls and useless message
Date: Thu, 23 Oct 2025 16:20:51 +0800 [thread overview]
Message-ID: <20251023082051.75183-1-maqianga@uniontech.com> (raw)
From: Qiang Ma <maqianga@uniontech.com>
This patchset removes duplicate function calls and useless debug message
1. The efi_set_mapping_permissions() does not need to be called in
efi_create_mapping(), because efi_memattr_apply_permissions() will be invoked.
The calling relationship is as follows:
==>efi_create_mapping()
==>efi_set_mapping_permissions()
==>efi_memattr_apply_permissions()
==>efi_set_mapping_permissions()
2. Based on the first point, efi_create_mapping() always returns 0,
so there is no need to print the failure return message.
Qiang Ma (2):
ARM/efi: Remove duplicate permission settings
efi/arm*: Remove the useless failure return message print
arch/arm/kernel/efi.c | 5 -----
drivers/firmware/efi/arm-runtime.c | 7 +------
2 files changed, 1 insertion(+), 11 deletions(-)
--
2.20.1
next reply other threads:[~2025-10-23 8:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-23 8:20 Qiang Ma [this message]
2025-10-23 10:55 ` Russell King (Oracle)
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=20251023082051.75183-1-maqianga@uniontech.com \
--to=maqianga@uniontech.com \
--cc=ardb@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®