summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2009-05-27 20:26:35 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2009-05-27 20:26:35 +0000
commitdc4b3a4fe1a79a4ee0285596eeee4a541b9a6571 (patch)
tree85c0843c2a765a7c5dc37e9c7d80e3a614b26eb4 /apps
parent95fb201fac8c65edd157fb3bb2f9e5f3c2915bf9 (diff)
downloadrockbox-dc4b3a4fe1a79a4ee0285596eeee4a541b9a6571.tar.gz
rockbox-dc4b3a4fe1a79a4ee0285596eeee4a541b9a6571.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/lib/helper.c16
1 files changed, 0 insertions, 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 */