diff options
author | Max Kellermann <max@duempel.org> | 2008-09-18 00:57:50 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-18 00:57:50 +0200 |
commit | 8ef5bed9479924849c6bbbd3f0e49870b1db481f (patch) | |
tree | 00e44fe87cfc6feb3566665bac429bba6e5d7f2f /src | |
parent | 260eb4ea969988190695386f7f7d6cc237c2b17d (diff) | |
download | mpd-8ef5bed9479924849c6bbbd3f0e49870b1db481f.tar.gz mpd-8ef5bed9479924849c6bbbd3f0e49870b1db481f.tar.xz mpd-8ef5bed9479924849c6bbbd3f0e49870b1db481f.zip |
screen: removed NULL check
Since the screen's initialization is guaranteed, we can remove the
NULL check in center_playing_item().
Diffstat (limited to 'src')
-rw-r--r-- | src/screen_play.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 1f844f943..75462ccf9 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -99,8 +99,7 @@ center_playing_item(mpdclient_t *c) unsigned offset = lw->selected - lw->start; int idx; - if (!lw || !c->song || length<lw->rows || - IS_STOPPED(c->status->state)) + if (!c->song || length<lw->rows || IS_STOPPED(c->status->state)) return; /* try to center the song that are playing */ |