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.

Tested-by: Kevin Hilman <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
  • Loading branch information
hkallweit authored and sudeep-holla committed Feb 23, 2018
1 parent 7928b2c commit cd6f060
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 @@ -918,8 +918,6 @@ static int scpi_remove(struct platform_device *pdev)
kfree(info->dvfs[i]->opps);
kfree(info->dvfs[i]);
}
devm_kfree(dev, info->channels);
devm_kfree(dev, info);

return 0;
}
Expand Down

0 comments on commit cd6f060

Please sign in to comment.