From 62a9685d5c7710baad1b6d91c42d1532cdc745ed Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 4 Sep 2013 19:24:15 +0000 Subject: [PATCH] mood: Don't open-code compute_dynamic_score(). compute_dynamic_score() adds the two values for the numplayed and the lasteplayed score. No need to duplicate this code here. --- mood.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mood.c b/mood.c index 465a48e4..db5d8afc 100644 --- a/mood.c +++ b/mood.c @@ -755,8 +755,7 @@ static int mood_update_audio_file(const struct osl_row *aft_row, if (ret < 0) return ret; } - score += compute_num_played_score(&afsi); - score += compute_last_played_score(&afsi); + score += compute_dynamic_score(&afsi); score /= 3; PARA_DEBUG_LOG("score: %li\n", score); percent = (score + 100) / 3; -- 2.39.5