Remove unused variable
Joe Korty [Tue, 24 May 2016 10:42:50 +0000 (15:42 +0530)]
drivers/thermal/pwm_fan.c: In function 'pwm_fan_resume':
drivers/thermal/pwm_fan.c:1053:6:
warning: unused variable 'err' [-Wunused-variable]

Bug 200187768

Change-Id: I6fcfa249ab536d47b6b91029aedf4b2f57eda1cc
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163893
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

drivers/thermal/pwm_fan.c

index 5c02395..c70a11f 100644 (file)
@@ -1192,7 +1192,6 @@ static int pwm_fan_suspend(struct platform_device *pdev, pm_message_t state)
 static int pwm_fan_resume(struct platform_device *pdev)
 {
        struct fan_dev_data *fan_data = platform_get_drvdata(pdev);
-       int err;
 
        /*Sanity check, want to make sure fan is off when the driver resumes*/
        mutex_lock(&fan_data->fan_state_lock);