提交 cfe8a9c9 编写于 作者: H Heiner Kallweit 提交者: 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: NHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
上级 00126945
...@@ -910,8 +910,6 @@ static int scpi_remove(struct platform_device *pdev) ...@@ -910,8 +910,6 @@ static int scpi_remove(struct platform_device *pdev)
kfree(scpi_info->dvfs[i]->opps); kfree(scpi_info->dvfs[i]->opps);
kfree(scpi_info->dvfs[i]); kfree(scpi_info->dvfs[i]);
} }
devm_kfree(dev, scpi_info->channels);
devm_kfree(dev, scpi_info);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册