Skip to content

Commit a2d100c

Browse files
jhovoldrafaeljw
authored andcommitted
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: 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>
1 parent cdc06f9 commit a2d100c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/cpuidle/cpuidle-qcom-spm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ static const struct of_device_id qcom_idle_state_match[] = {
8686

8787
static int spm_cpuidle_register(struct device *cpuidle_dev, int cpu)
8888
{
89-
struct platform_device *pdev = NULL;
89+
struct platform_device *pdev;
9090
struct device_node *cpu_node, *saw_node;
91-
struct cpuidle_qcom_spm_data *data = NULL;
91+
struct cpuidle_qcom_spm_data *data;
9292
int ret;
9393

9494
cpu_node = of_cpu_device_node_get(cpu);

0 commit comments

Comments
 (0)