Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfe8a9c9 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Sudeep Holla
Browse files

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 00126945
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}