From 76d49e085db502c8da1718beb40210a27f494539 Mon Sep 17 00:00:00 2001 From: jarek Date: Sun, 14 May 2017 22:53:53 +0200 Subject: [PATCH] rem unneeded ret variable int ret is not needed, statemet can be simplified --- mqtt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mqtt.c b/mqtt.c index 40b5347..2a22322 100644 --- a/mqtt.c +++ b/mqtt.c @@ -49,7 +49,6 @@ static void mqtt_queue(mqtt_client *client) static bool client_connect(mqtt_client *client) { - int ret; struct sockaddr_in remote_ip; while (1) { @@ -114,8 +113,7 @@ static bool client_connect(mqtt_client *client) } mqtt_info("Start SSL connect.."); - ret = SSL_connect(client->ssl); - if (!ret) { + if (!SSL_connect(client->ssl)) { mqtt_error("SSL Connect FAILED"); goto failed4; }