summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-10 11:03:15 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-10 11:03:15 +0000
commit8ed02fbafe315957a74f22cadd6bc08bfd75bf65 (patch)
tree3b58cbff4d0d071d2254e80202d5c3632a9bd94f /src/transport/gnunet-service-transport_validation.c
parente649f10af79eb62bdd1eb0d358538779e3f49235 (diff)
-just eliminate useless check, can just be false
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r--src/transport/gnunet-service-transport_validation.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index a2fb3c853..f6569cdf7 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -1664,32 +1664,14 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address,
GNUNET_break (0);
return;
}
- if (ve->in_use == in_use)
- {
- if (GNUNET_YES == in_use)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Error setting address in use for peer `%s' `%s' to USED\n",
- GNUNET_i2s (&address->peer),
- GST_plugins_a2s (address));
- }
- if (GNUNET_NO == in_use)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Error setting address in use for peer `%s' `%s' to NOT_USED\n",
- GNUNET_i2s (&address->peer),
- GST_plugins_a2s (address));
- }
- }
-
- GNUNET_break (ve->in_use != in_use); /* should be different... */
ve->in_use = in_use;
if (GNUNET_YES == in_use)
{
/* from now on, higher frequeny, so reschedule now */
if (NULL != ve->revalidation_task)
GNUNET_SCHEDULER_cancel (ve->revalidation_task);
- ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address, ve);
+ ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address,
+ ve);
}
}