Fix compiler warning about obviously unreachable code.
authorRaymond Hettinger <python@rcn.com>
Mon, 25 Jan 2016 06:15:20 +0000 (22:15 -0800)
committerRaymond Hettinger <python@rcn.com>
Mon, 25 Jan 2016 06:15:20 +0000 (22:15 -0800)
Modules/socketmodule.c

index 7ab534e07a41e0e8fe655f3ef4acff8babbca39d..a6143c64d6183e02232434cd1e93b27957fe0c9e 100644 (file)
@@ -5411,10 +5411,6 @@ socket_inet_ntop(PyObject *self, PyObject *args)
     } else {
         return PyUnicode_FromString(retval);
     }
-
-    /* NOTREACHED */
-    PyErr_SetString(PyExc_RuntimeError, "invalid handling of inet_ntop");
-    return NULL;
 }
 
 #elif defined(MS_WINDOWS)