From 2c56ac8448dee694fbe775a317fe4e841485960a Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Tue, 6 Jul 2010 17:03:45 +0000 Subject: [PATCH] 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 --- apps/bookmark.c | 6 +++--- 1 file 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