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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
This commit is contained in:
committed by
Sudeep Holla
parent
0012694590
commit
cfe8a9c9aa
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user