diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-26 14:30:48 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-26 14:30:48 +0000 |
| commit | c3674ef96afc7fe64d924ccb90f5d56e531774e0 (patch) | |
| tree | ed294fdd6d642f845e3ab3a605420de83fdec171 | |
| parent | e53bdf0c20a2be846affe3282ac268378083b265 (diff) | |
| download | rockbox-c3674ef96afc7fe64d924ccb90f5d56e531774e0.zip rockbox-c3674ef96afc7fe64d924ccb90f5d56e531774e0.tar.gz rockbox-c3674ef96afc7fe64d924ccb90f5d56e531774e0.tar.bz2 rockbox-c3674ef96afc7fe64d924ccb90f5d56e531774e0.tar.xz | |
Killed a warning on Players
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1453 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/backlight.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index 442c441..27c608e 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -40,7 +40,6 @@ static int backlight_timeout = 5; void backlight_thread(void) { struct event ev; - int tmp; while(1) { @@ -52,8 +51,8 @@ void backlight_thread(void) if(backlight_timer) { #ifdef HAVE_RTC - tmp = rtc_read(0x0a); - rtc_write(0x0a, tmp | 0x40); /* Enable square wave */ + /* Enable square wave */ + rtc_write(0x0a, rtc_read(0x0a) | 0x40); #else PADR &= ~0x4000; #endif @@ -62,8 +61,8 @@ void backlight_thread(void) case BACKLIGHT_OFF: #ifdef HAVE_RTC - tmp = rtc_read(0x0a); - rtc_write(0x0a, tmp & ~0x40); /* Disable square wave */ + /* Disable square wave */ + rtc_write(0x0a, rtc_read(0x0a) & ~0x40); #else PADR |= 0x4000; #endif |