From: David Goulet Date: Thu, 9 Sep 2010 21:11:19 +0000 (+0200) Subject: Fix missing parenthese around logic comparison X-Git-Tag: v0.8~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c66428ac9ee17d0724baf4430e29887aeed5f259;p=ust.git Fix missing parenthese around logic comparison Error introduce in commit number 9dec086e052cf7f583a3afaa3aab48a6de8d38ac. Signed-off-by: David Goulet Acked-by: Mathieu Desnoyers --- diff --git a/libust/tracepoint.c b/libust/tracepoint.c index 8783b53..16b4819 100644 --- a/libust/tracepoint.c +++ b/libust/tracepoint.c @@ -154,8 +154,8 @@ tracepoint_entry_remove_probe(struct tracepoint_entry *entry, void *probe, debug_print_probes(entry); /* (N -> M), (N > 1, M >= 0) probes */ for (nr_probes = 0; old[nr_probes].func; nr_probes++) { - if ((!probe || - old[nr_probes].func == probe && + if (!probe || + (old[nr_probes].func == probe && old[nr_probes].data == data)) nr_del++; }