1
0
Fork 0

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>
hifive-unleashed-5.1
Heiner Kallweit 2017-09-29 23:44:01 +02:00 committed by Sudeep Holla
parent 0012694590
commit cfe8a9c9aa
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}