-simplify
authorChristian Grothoff <christian@grothoff.org>
Tue, 27 Oct 2015 13:22:47 +0000 (13:22 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 27 Oct 2015 13:22:47 +0000 (13:22 +0000)
src/ats/gnunet-service-ats_performance.c

index 654704df82a72bbee70875083a88e278071e418c..a7b4b9bb20e227bdb54722bfa99da755cee34fd9 100644 (file)
@@ -161,8 +161,8 @@ GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer,
                                     struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
                                     struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in)
 {
-  if (NULL != prop)
-    GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope);
+  GNUNET_break ( (NULL == prop) ||
+                 (GNUNET_ATS_NET_UNSPECIFIED != prop->scope) );
   notify_client (NULL,
                  peer,
                  plugin_name,