]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
ebtablesAddRemoveRule: avoid dead store
authorJim Meyering <meyering@redhat.com>
Fri, 5 Mar 2010 16:36:40 +0000 (17:36 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 5 Mar 2010 22:24:52 +0000 (23:24 +0100)
* src/util/ebtables.c (ebtablesAddRemoveRule): Avoid dead store
to local, "s".

src/util/ebtables.c

index dba9f82d026a23188d1a1bb34c9ab3490cc16b0c..988783c8b81b89f4d53309e3df9018159fd109bc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2009 IBM Corp.
- * Copyright (C) 2007-2009 Red Hat, Inc.
+ * Copyright (C) 2007-2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -185,7 +185,7 @@ ebtablesAddRemoveRule(ebtRules *rules, int action, const char *arg, ...)
         1;  /*   arg           */
 
     va_start(args, arg);
-    while ((s = va_arg(args, const char *)))
+    while (va_arg(args, const char *))
         n++;
 
     va_end(args);