]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/kernel/fpu/xstate.c
x86/fpu: Fix boolreturn.cocci warnings
[linux.git] / arch / x86 / kernel / fpu / xstate.c
index 41c52256bdce6a5d46fc01fd177c1fba77286e1d..fda1109cc3553564e11040b1fc99b417e3a513d4 100644 (file)
@@ -929,12 +929,12 @@ int arch_set_user_pkey_access(struct task_struct *tsk, int pkey,
 static inline bool xfeatures_mxcsr_quirk(u64 xfeatures)
 {
        if (!(xfeatures & (XFEATURE_MASK_SSE|XFEATURE_MASK_YMM)))
-               return 0;
+               return false;
 
        if (xfeatures & XFEATURE_MASK_FP)
-               return 0;
+               return false;
 
-       return 1;
+       return true;
 }
 
 /*