From: Max Kellermann Date: Fri, 17 Mar 2017 22:38:58 +0000 (+0100) Subject: mpdclient: remove unnecessary NULL check X-Git-Tag: v0.26~45 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c68131c93b7682e1162b9391e120dbce23bfe554;p=ncmpc.git mpdclient: remove unnecessary NULL check --- diff --git a/src/mpdclient.c b/src/mpdclient.c index 3db559b..f500c9a 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -166,8 +166,7 @@ mpdclient_connect(struct mpdclient *c, const gchar *password) { /* close any open connection */ - if (c->connection) - mpdclient_disconnect(c); + mpdclient_disconnect(c); /* connect to MPD */ c->connection = mpd_connection_new(host, port, timeout_ms);