diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2017-09-30 00:44:01 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2017-10-04 13:09:45 +0300 |
commit | cfe8a9c9aaf47af3d9e6fe4c4b03f4a88844746d (patch) | |
tree | f65aaf6942720c5d116d07ca0140a048cc610be6 /drivers | |
parent | 00126945902d2335c3b1f1c12db4ae2afeb4da0f (diff) | |
download | linux-cfe8a9c9aaf47af3d9e6fe4c4b03f4a88844746d.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firmware/arm_scpi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c index a7f686e9dc1c..b99af7af64ff 100644 --- a/drivers/firmware/arm_scpi.c +++ b/drivers/firmware/arm_scpi.c @@ -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; } |