summaryrefslogtreecommitdiff
path: root/libdm/regex
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-11-29 12:43:49 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-11-29 12:43:49 +0000
commit4cb0f557d9fd072206165c84d94a3f44a56dfcf3 (patch)
tree89610286e243dfbcedcfa9432017701927eb952d /libdm/regex
parent5f3325fcf11e2821b8b21c3056118f66ba3d04ed (diff)
downloadlvm2-4cb0f557d9fd072206165c84d94a3f44a56dfcf3.tar.gz
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.
Diffstat (limited to 'libdm/regex')
-rw-r--r--libdm/regex/matcher.c2
1 files changed, 1 insertions, 1 deletions
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]))