diff options
author | Alexander Levin <al.le@rockbox.org> | 2010-07-06 17:03:45 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2010-07-06 17:03:45 +0000 |
commit | 2c56ac8448dee694fbe775a317fe4e841485960a (patch) | |
tree | 257bc3f8c1e809362cb02671023f49012b38f731 | |
parent | 7d4c0c5e7ed2ef0a87008db2250d4ae5aff8609a (diff) | |
download | rockbox-2c56ac8448dee694fbe775a317fe4e841485960a.tar.gz rockbox-2c56ac8448dee694fbe775a317fe4e841485960a.zip |
Slightly rearranged lines to execute only what's really needed. No functional changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27314 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/bookmark.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c index b2ff1aafbc..6c546bb29b 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c | |||
@@ -166,13 +166,13 @@ bool bookmark_mrb_load() | |||
166 | bool bookmark_autobookmark(bool prompt_ok) | 166 | bool bookmark_autobookmark(bool prompt_ok) |
167 | { | 167 | { |
168 | char* bookmark; | 168 | char* bookmark; |
169 | bool update = false; | 169 | bool update; |
170 | |||
170 | if (!is_bookmarkable_state()) | 171 | if (!is_bookmarkable_state()) |
171 | return false; | 172 | return false; |
172 | 173 | ||
173 | audio_pause(); /* first pause playback */ | 174 | audio_pause(); /* first pause playback */ |
174 | if (global_settings.autoupdatebookmark && bookmark_exists()) | 175 | update = (global_settings.autoupdatebookmark && bookmark_exists()); |
175 | update = true; | ||
176 | bookmark = create_bookmark(); | 176 | bookmark = create_bookmark(); |
177 | /* Workaround for inability to speak when paused: all callers will | 177 | /* Workaround for inability to speak when paused: all callers will |
178 | just do audio_stop() when we return, so we can do it right | 178 | just do audio_stop() when we return, so we can do it right |