]> git.karo-electronics.de Git - linux-beck.git/commitdiff
thermal: core: remove void function return statements
authorEduardo Valentin <edubezval@gmail.com>
Tue, 8 Nov 2016 05:09:22 +0000 (21:09 -0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:06:12 +0000 (10:06 +0800)
Simply removing useless returns of void functions.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c

index d33b29a1553f989ac6b2f2e1ae59c1811bf14c2a..8365d0b81f77e98ab4e15cb93e482e2874e8ef01 100644 (file)
@@ -202,7 +202,6 @@ void thermal_unregister_governor(struct thermal_governor *governor)
        list_del(&governor->governor_list);
 exit:
        mutex_unlock(&thermal_governor_lock);
-       return;
 }
 
 int thermal_zone_device_set_policy(struct thermal_zone_device *tz,
@@ -1069,7 +1068,6 @@ void thermal_cooling_device_unregister(struct thermal_cooling_device *cdev)
 
        release_idr(&thermal_cdev_idr, &thermal_idr_lock, cdev->id);
        device_unregister(&cdev->device);
-       return;
 }
 EXPORT_SYMBOL_GPL(thermal_cooling_device_unregister);