]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cpuidle: qcom-spm: drop unnecessary initialisations
authorJohan Hovold <johan@kernel.org>
Mon, 8 Sep 2025 15:22:13 +0000 (17:22 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Sep 2025 10:49:52 +0000 (12:49 +0200)
Drop the unnecessary initialisations of the platform device and driver
data pointers which are assigned on first use when registering the
cpuidle device during probe.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle-qcom-spm.c

index f60a4cf536423748003602298b1ed03c03267813..7ab6f68b96a8257252ec73bded6e0dd1ea4c5303 100644 (file)
@@ -86,9 +86,9 @@ static const struct of_device_id qcom_idle_state_match[] = {
 
 static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu)
 {
-       struct platform_device *pdev = NULL;
+       struct platform_device *pdev;
        struct device_node *cpu_node, *saw_node;
-       struct cpuidle_qcom_spm_data *data = NULL;
+       struct cpuidle_qcom_spm_data *data;
        int ret;
 
        cpu_node = of_cpu_device_node_get(cpu);