From: Max Kellermann Date: Wed, 17 Sep 2008 22:57:50 +0000 (+0200) Subject: screen: removed NULL check X-Git-Tag: v0.12_alpha1~259 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8ef5bed9479924849c6bbbd3f0e49870b1db481f;p=ncmpc.git screen: removed NULL check Since the screen's initialization is guaranteed, we can remove the NULL check in center_playing_item(). --- diff --git a/src/screen_play.c b/src/screen_play.c index 1f844f9..75462cc 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 || lengthrows || - IS_STOPPED(c->status->state)) + if (!c->song || lengthrows || IS_STOPPED(c->status->state)) return; /* try to center the song that are playing */