From 4cb0f557d9fd072206165c84d94a3f44a56dfcf3 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 Nov 2010 12:43:49 +0000 Subject: [PATCH] Remove dead assignment in _step_matcher 'ns' is not used after this assignment and it is reassigned with the following code, so dropping this assignment. --- libdm/regex/matcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/regex/matcher.c b/libdm/regex/matcher.c index 17f33a417..0c98fcc30 100644 --- a/libdm/regex/matcher.c +++ b/libdm/regex/matcher.c @@ -372,7 +372,7 @@ static struct dfa_state *_step_matcher(struct dm_regex *m, int c, struct dfa_sta { struct dfa_state *ns; - if (!(ns = cs->lookup[(unsigned char) c])) + if (!cs->lookup[(unsigned char) c]) _calc_state(m, cs, (unsigned char) c); if (!(ns = cs->lookup[(unsigned char) c]))