From: Brett Cannon Date: Tue, 7 Jun 2011 03:24:11 +0000 (-0700) Subject: Remove a redundant assignment. X-Git-Tag: v3.3.0a1~2162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb175c473d8a01ddf554fc45c566fc8e65f69ded;p=python Remove a redundant assignment. Found by LLVM/clang 2.9. --- diff --git a/Modules/nismodule.c b/Modules/nismodule.c index a81ca8ca4d..0af495fa53 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -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) {