diff mbox series

[v3,03/16] thermal: tsens: Get rid of dead code

Message ID fd30eebdaa1eab19e233664be3f1562e5ae3ba0d.1536744310.git.amit.kucheria@linaro.org
State Accepted
Commit caac52bce61116c4d645d80e38ed07e47a81a2e9
Headers show
Series [v3,01/16] thermal: tsens: Prepare 8916 and 8974 tsens to use SROT and TM address space | expand

Commit Message

Amit Kucheria Sept. 12, 2018, 9:52 a.m. UTC
hw_id is dynamically allocated but not used anywhere. Get rid of dead
code.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

---
 drivers/thermal/qcom/tsens.c | 5 -----
 1 file changed, 5 deletions(-)

-- 
2.17.1
diff mbox series

Patch

diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
index 90bb431cf740..9a8e8f7b4ae1 100644
--- a/drivers/thermal/qcom/tsens.c
+++ b/drivers/thermal/qcom/tsens.c
@@ -80,11 +80,6 @@  static int tsens_register(struct tsens_device *tmdev)
 {
 	int i;
 	struct thermal_zone_device *tzd;
-	u32 *hw_id, n = tmdev->num_sensors;
-
-	hw_id = devm_kcalloc(tmdev->dev, n, sizeof(u32), GFP_KERNEL);
-	if (!hw_id)
-		return -ENOMEM;
 
 	for (i = 0;  i < tmdev->num_sensors; i++) {
 		tmdev->sensor[i].tmdev = tmdev;