archive mirror
 help / color / mirror / Atom feed
From: Yajun Deng <>
Cc:, Yajun Deng <>
Subject: [PATCH] x86/fpu/xstate: Remove the unlinkly in cpu_has_xfeatures()
Date: Tue, 29 Jun 2021 20:52:29 +0800	[thread overview]
Message-ID: <> (raw)

The '&feature_name' isn't NULL in print_xstate_feature(), and also the
same as in cast5_init(). so remove the unlinkly in cpu_has_xfeatures().

Signed-off-by: Yajun Deng <>
 arch/x86/kernel/fpu/xstate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c
index c8def1b7f8fb..2a6f9685f605 100644
--- a/arch/x86/kernel/fpu/xstate.c
+++ b/arch/x86/kernel/fpu/xstate.c
@@ -87,7 +87,7 @@ int cpu_has_xfeatures(u64 xfeatures_needed, const char **feature_name)
 	u64 xfeatures_missing = xfeatures_needed & ~xfeatures_mask_all;
-	if (unlikely(feature_name)) {
+	if (feature_name) {
 		long xfeature_idx, max_idx;
 		u64 xfeatures_print;

                 reply	other threads:[~2021-06-29 12:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

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

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] x86/fpu/xstate: Remove the unlinkly in cpu_has_xfeatures()' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).