summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.c
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2010-07-06 17:03:45 +0000
committerAlexander Levin <al.le@rockbox.org>2010-07-06 17:03:45 +0000
commit2c56ac8448dee694fbe775a317fe4e841485960a (patch)
tree257bc3f8c1e809362cb02671023f49012b38f731 /apps/bookmark.c
parent7d4c0c5e7ed2ef0a87008db2250d4ae5aff8609a (diff)
downloadrockbox-2c56ac8448dee694fbe775a317fe4e841485960a.tar.gz
rockbox-2c56ac8448dee694fbe775a317fe4e841485960a.tar.bz2
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
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c6
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()
bool bookmark_autobookmark(bool prompt_ok)
{
char* bookmark;
- bool update = false;
+ bool update;
+
if (!is_bookmarkable_state())
return false;
audio_pause(); /* first pause playback */
- if (global_settings.autoupdatebookmark && bookmark_exists())
- update = true;
+ update = (global_settings.autoupdatebookmark && bookmark_exists());
bookmark = create_bookmark();
/* Workaround for inability to speak when paused: all callers will
just do audio_stop() when we return, so we can do it right