thermal: tsens: Get rid of dead code
authorAmit Kucheria <amit.kucheria@linaro.org>
Wed, 12 Sep 2018 09:52:48 +0000 (15:22 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:32:38 +0000 (17:32 -0700)
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>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom/tsens.c

index 90bb431cf74021f8769e80d492d89c4c2703a05f..9a8e8f7b4ae15b640b537c078943bf69a9a1e140 100644 (file)
@@ -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;