From dc4b3a4fe1a79a4ee0285596eeee4a541b9a6571 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Wed, 27 May 2009 20:26:35 +0000 Subject: Commit next part of FS# 10138 by Teruaki Kawashima. Removed unneeded error checks in plugin lib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21102 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/helper.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c index c70d8264a5..e35e43a40a 100644 --- a/apps/plugins/lib/helper.c +++ b/apps/plugins/lib/helper.c @@ -25,8 +25,6 @@ /* Force the backlight on */ void backlight_force_on(void) { - if(!rb) - return; if (rb->global_settings->backlight_timeout > 0) rb->backlight_set_timeout(0); #if CONFIG_CHARGING @@ -38,8 +36,6 @@ void backlight_force_on(void) /* Reset backlight operation to its settings */ void backlight_use_settings(void) { - if (!rb) - return; rb->backlight_set_timeout(rb->global_settings->backlight_timeout); #if CONFIG_CHARGING rb->backlight_set_timeout_plugged(rb->global_settings-> @@ -51,8 +47,6 @@ void backlight_use_settings(void) /* Force the backlight on */ void remote_backlight_force_on(void) { - if (!rb) - return; if (rb->global_settings->remote_backlight_timeout > 0) rb->remote_backlight_set_timeout(0); #if CONFIG_CHARGING @@ -64,8 +58,6 @@ void remote_backlight_force_on(void) /* Reset backlight operation to its settings */ void remote_backlight_use_settings(void) { - if (!rb) - return; rb->remote_backlight_set_timeout(rb->global_settings-> remote_backlight_timeout); #if CONFIG_CHARGING @@ -79,8 +71,6 @@ void remote_backlight_use_settings(void) /* Force the buttonlight on */ void buttonlight_force_on(void) { - if (!rb) - return; if (rb->global_settings->buttonlight_timeout > 0) rb->buttonlight_set_timeout(0); } @@ -88,8 +78,6 @@ void buttonlight_force_on(void) /* Reset buttonlight operation to its settings */ void buttonlight_use_settings(void) { - if (!rb) - return; rb->buttonlight_set_timeout(rb->global_settings->buttonlight_timeout); } #endif /* HAVE_BUTTON_LIGHT */ @@ -97,15 +85,11 @@ void buttonlight_use_settings(void) #ifdef HAVE_BACKLIGHT_BRIGHTNESS void backlight_brightness_set(int brightness) { - if (!rb) - return; rb->backlight_set_brightness(brightness); } void backlight_brightness_use_setting(void) { - if (!rb) - return; rb->backlight_set_brightness(rb->global_settings->brightness); } #endif /* HAVE_BACKLIGHT_BRIGHTNESS */ -- cgit v1.2.3