Skip to content

Commit

Permalink
firmware: arm_scpi: remove two unneeded devm_kfree's in scpi_remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and Sudeep Holla committed Oct 4, 2017
1 parent 0012694 commit cfe8a9c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/firmware/arm_scpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cfe8a9c

Please sign in to comment.