Skip to contentSkip to conversation

LVM2/libdm/regex matcher.c

PATCH [email protected] 1 participant 1 message Nov 29, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-11-29 12:43:49

Modified files:
libdm/regex : matcher.c

Log message:
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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/regex/matcher.c.diff?cvsroot=lvm2&r1=1.13&r2=1.14

libdm/regex/matcher.c +1 -1
@@ -372,7 +372,7 @@
 {
         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]))