From 8ef5bed9479924849c6bbbd3f0e49870b1db481f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 18 Sep 2008 00:57:50 +0200 Subject: [PATCH] screen: removed NULL check Since the screen's initialization is guaranteed, we can remove the NULL check in center_playing_item(). --- src/screen_play.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */ -- 2.30.2