pitch_detector: the menu function already returns a bool, so use the return value directly

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28994 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alexander Levin 2011-01-07 20:21:37 +00:00
parent 42ad21ab53
commit 41e5933877

View file

@ -420,6 +420,7 @@ static void set_min_freq(int new_freq)
settings.sample_size = (settings.sample_size + 3) & ~3;
}
/* Displays the menu. Returns true iff the user selects 'quit'. */
static bool main_menu(void)
{
int selection = 0;
@ -972,7 +973,7 @@ static void record_and_get_pitch(void)
case PLA_CANCEL:
rb->pcm_stop_recording();
quit = main_menu() != 0;
quit = main_menu();
if(!quit)
{
redraw = true;