diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-10 11:45:49 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-23 00:37:00 +0100 |
commit | 533da74a8c8d75af7958f4aa1abc944f061d1d85 (patch) | |
tree | 939f9e8330d4a92f7b874131f2c0eb54bb579227 | |
parent | a6c86e336282c67a0b04f64b3b5574794249e3e1 (diff) | |
download | linux-533da74a8c8d75af7958f4aa1abc944f061d1d85.tar.bz2 |
intel_idle: Clean up NULL pointer check in intel_idle_init()
Instead of comparing intel_idle_cpuidle_devices with NULL apply
the "!" (not) operator to it when checking it against NULL.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/idle/intel_idle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 690309c78dfb..fddb72e5f6fa 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -1630,7 +1630,7 @@ static int __init intel_idle_init(void) boot_cpu_data.x86_model); intel_idle_cpuidle_devices = alloc_percpu(struct cpuidle_device); - if (intel_idle_cpuidle_devices == NULL) + if (!intel_idle_cpuidle_devices) return -ENOMEM; intel_idle_cpuidle_driver_init(); |