]> granicus.if.org Git - python/commitdiff
Remove a redundant assignment.
authorBrett Cannon <brett@python.org>
Tue, 7 Jun 2011 03:24:11 +0000 (20:24 -0700)
committerBrett Cannon <brett@python.org>
Tue, 7 Jun 2011 03:24:11 +0000 (20:24 -0700)
Found by LLVM/clang 2.9.

Modules/nismodule.c

index a81ca8ca4dfb6a714f6dfe8a3f6b54969edc0476..0af495fa538cacae4e4e2c6d26a5e2c5a29fd05e 100644 (file)
@@ -411,7 +411,7 @@ nis_maps (PyObject *self, PyObject *args, PyObject *kwdict)
         return NULL;
     if ((list = PyList_New(0)) == NULL)
         return NULL;
-    for (maps = maps; maps; maps = maps->next) {
+    for (; maps; maps = maps->next) {
         PyObject *str = PyUnicode_FromString(maps->map);
         if (!str || PyList_Append(list, str) < 0)
         {