gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 232/264: mqtt: remove code with no purpose


From: gnunet
Subject: [gnurl] 232/264: mqtt: remove code with no purpose
Date: Thu, 30 Apr 2020 16:08:55 +0200

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 093a9e00142de95f6530830bf7b57d56df586b00
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Apr 20 17:06:55 2020 +0200

    mqtt: remove code with no purpose
    
    Detected by Coverity. CID 1462319.
    
    "The same code is executed when the condition result is true or false,
    because the code in the if-then branch and after the if statement is
    identical."
    
    Closes #5275
---
 lib/mqtt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/mqtt.c b/lib/mqtt.c
index 44433361b..4c664f7f6 100644
--- a/lib/mqtt.c
+++ b/lib/mqtt.c
@@ -609,8 +609,6 @@ static CURLcode mqtt_doing(struct connectdata *conn, bool 
*done)
   case MQTT_PUBWAIT:
   case MQTT_PUB_REMAIN:
     result = mqtt_read_publish(conn, done);
-    if(result)
-      break;
     break;
 
   default:

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]