Skip to contentSkip to conversation

x86/fpu/xstate: Remove the unlinkly in cpu_has_xfeatures()

PATCH New Yajun Deng 1 participant 1 message Jun 29, 2021 x86

lore
Share & tools
lore

Yajun Deng

author
#0 lore raw

PATCH 1/1 x86/fpu/xstate: Remove the unlinkly in cpu_has_xfeatures()

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().

---
 arch/x86/kernel/fpu/xstate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/fpu/xstate.c +1 -1
index c8def1b7f8fb..2a6f9685f605 100644
@@ -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;
 		/*
Signature · 1 line
2.32.0