diff options
author | Anton Vorontsov <cbou@mail.ru> | 2007-07-14 21:18:25 -0400 |
---|---|---|
committer | Anton Vorontsov <cbou@mail.ru> | 2007-07-15 14:32:38 -0400 |
commit | 7b3d54a8c30d2c524889a05d0c1334813d516b93 (patch) | |
tree | 7bcbfadc8604f04bea356a8fc61f8069daf24b85 /drivers/power/ds2760_battery.c | |
parent | 5ebf6e6a96e41220edec23a90e4140985d1a5732 (diff) |
Power supply class and drivers: remove non obligatory return statements
Per Jeff Garzik request.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Anton Vorontsov <cbou@mail.ru>
Diffstat (limited to 'drivers/power/ds2760_battery.c')
-rw-r--r-- | drivers/power/ds2760_battery.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index 00e1ea6f1de2..be7021ee3611 100644 --- a/drivers/power/ds2760_battery.c +++ b/drivers/power/ds2760_battery.c | |||
@@ -254,8 +254,6 @@ static void ds2760_battery_update_status(struct ds2760_device_info *di) | |||
254 | 254 | ||
255 | if (di->charge_status != old_charge_status) | 255 | if (di->charge_status != old_charge_status) |
256 | power_supply_changed(&di->bat); | 256 | power_supply_changed(&di->bat); |
257 | |||
258 | return; | ||
259 | } | 257 | } |
260 | 258 | ||
261 | static void ds2760_battery_work(struct work_struct *work) | 259 | static void ds2760_battery_work(struct work_struct *work) |
@@ -268,8 +266,6 @@ static void ds2760_battery_work(struct work_struct *work) | |||
268 | 266 | ||
269 | ds2760_battery_update_status(di); | 267 | ds2760_battery_update_status(di); |
270 | queue_delayed_work(di->monitor_wqueue, &di->monitor_work, interval); | 268 | queue_delayed_work(di->monitor_wqueue, &di->monitor_work, interval); |
271 | |||
272 | return; | ||
273 | } | 269 | } |
274 | 270 | ||
275 | #define to_ds2760_device_info(x) container_of((x), struct ds2760_device_info, \ | 271 | #define to_ds2760_device_info(x) container_of((x), struct ds2760_device_info, \ |
@@ -283,8 +279,6 @@ static void ds2760_battery_external_power_changed(struct power_supply *psy) | |||
283 | 279 | ||
284 | cancel_delayed_work(&di->monitor_work); | 280 | cancel_delayed_work(&di->monitor_work); |
285 | queue_delayed_work(di->monitor_wqueue, &di->monitor_work, HZ/10); | 281 | queue_delayed_work(di->monitor_wqueue, &di->monitor_work, HZ/10); |
286 | |||
287 | return; | ||
288 | } | 282 | } |
289 | 283 | ||
290 | static int ds2760_battery_get_property(struct power_supply *psy, | 284 | static int ds2760_battery_get_property(struct power_supply *psy, |
@@ -457,7 +451,6 @@ static int __init ds2760_battery_init(void) | |||
457 | static void __exit ds2760_battery_exit(void) | 451 | static void __exit ds2760_battery_exit(void) |
458 | { | 452 | { |
459 | platform_driver_unregister(&ds2760_battery_driver); | 453 | platform_driver_unregister(&ds2760_battery_driver); |
460 | return; | ||
461 | } | 454 | } |
462 | 455 | ||
463 | module_init(ds2760_battery_init); | 456 | module_init(ds2760_battery_init); |