Commit a2d100c4 authored by Johan Hovold's avatar Johan Hovold Committed by Rafael J. Wysocki
Browse files

cpuidle: qcom-spm: drop unnecessary initialisations



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: default avatarJohan Hovold <johan@kernel.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent cdc06f91
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);