Commit cfe8a9c9 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Sudeep Holla

firmware: arm_scpi: remove two unneeded devm_kfree's in scpi_remove

Both memory areas are free'd anyway when the device is destroyed,
so we don't have to do it manually.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 00126945
......@@ -910,8 +910,6 @@ static int scpi_remove(struct platform_device *pdev)
kfree(scpi_info->dvfs[i]->opps);
kfree(scpi_info->dvfs[i]);
}
devm_kfree(dev, scpi_info->channels);
devm_kfree(dev, scpi_info);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment