summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Eitzenberger <heitzenberger@astaro.com>2009-11-12 19:31:01 +0100
committerHarald Welte <laforge@gnumonks.org>2010-10-21 19:15:40 +0200
commitf0718ef8e12cb0ebd43b67a73d6ed3869a2ab803 (patch)
tree66ac510164ddd9f2e9b8ac0dca65edf4548183cb
parentd51a4a66c00b0c4ee4a153920251b345dd6f533b (diff)
IPFIX: the check for llist_empty() is unnecessary
Signed-off-by: Holger Eitzenberger <heitzenberger@astaro.com>
-rw-r--r--output/ipfix/ulogd_output_IPFIX.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/output/ipfix/ulogd_output_IPFIX.c b/output/ipfix/ulogd_output_IPFIX.c
index 50f3400..1495a03 100644
--- a/output/ipfix/ulogd_output_IPFIX.c
+++ b/output/ipfix/ulogd_output_IPFIX.c
@@ -311,9 +311,6 @@ send_msgs(struct ulogd_pluginstance *pi)
struct ipfix_priv *priv = upi_priv(pi);
struct llist_head *curr, *tmp;
- if (llist_empty(&priv->list))
- return 0;
-
llist_for_each_prev_safe(curr, tmp, &priv->list) {
struct ipfix_msg *msg = llist_entry(curr, struct ipfix_msg, link);
int ret;