From c68131c93b7682e1162b9391e120dbce23bfe554 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Mar 2017 23:38:58 +0100 Subject: [PATCH] mpdclient: remove unnecessary NULL check --- src/mpdclient.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.30.2