- fix dead code covertiy 12876
authorBart Polot <bart@net.in.tum.de>
Mon, 7 Apr 2014 14:26:16 +0000 (14:26 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 7 Apr 2014 14:26:16 +0000 (14:26 +0000)
src/mesh/gnunet-service-mesh_hello.c

index 723989bf8b473bd55e576c7e8b926eba4b1bb7d2..599cc37318e23bba1fb36ccf2b3e6b10563eecd6 100644 (file)
@@ -106,13 +106,8 @@ got_hello (void *cls, const struct GNUNET_PeerIdentity *id,
     return;
   }
   LOG (GNUNET_ERROR_TYPE_DEBUG, " hello for %s (%d bytes), expires on %s\n",
-       GNUNET_i2s (id), NULL != hello ? GNUNET_HELLO_size (hello) : -1,
+       GNUNET_i2s (id), GNUNET_HELLO_size (hello),
        GNUNET_STRINGS_absolute_time_to_string (GNUNET_HELLO_get_last_expiration(hello)));
-  if (NULL == hello)
-  {
-    LOG (GNUNET_ERROR_TYPE_DEBUG, " hello is NULL\n");
-    return;
-  }
   peer = GMP_get (id);
   GMP_set_hello (peer, hello);