KVM: x86: Change return type of is_long_mode() to bool
authorBinbin Wu <binbin.wu@linux.intel.com>
Wed, 22 Mar 2023 04:58:24 +0000 (12:58 +0800)
committerSean Christopherson <seanjc@google.com>
Wed, 22 Mar 2023 22:44:33 +0000 (15:44 -0700)
commit68f7c82ab1b8c7057b0c241907ff7906c7407e6d
tree6f73801cb5939b8c745376b9d1912d6ffe154e8b
parent627778bfcfa1ff81acfe863dcc4316edd0a51276
KVM: x86: Change return type of is_long_mode() to bool

Change return type of is_long_mode() to bool to avoid implicit cast,
as literally every user of is_long_mode() treats its return value as a
boolean.

Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20230322045824.22970-5-binbin.wu@linux.intel.com
Reviewed-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.h