]> granicus.if.org Git - python/commitdiff
Remove an unnecessary check for NULL.
authorFred Drake <fdrake@acm.org>
Thu, 18 Oct 2001 19:21:46 +0000 (19:21 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 18 Oct 2001 19:21:46 +0000 (19:21 +0000)
Objects/weakrefobject.c

index 886d8742bd2088ed4d383b04d024e4cbdb662e28..e8211543452ee8e3c1d2ec6084e835daf9d06ba5 100644 (file)
@@ -233,15 +233,14 @@ proxy_checkref(PyWeakReference *proxy)
         return generic(x, y); \
     }
 
-/* Note that the second and third args need to be checked for NULL since
- * (at least) the tp_call slot can receive NULL for either of those args.
+/* Note that the third arg needs to be checked for NULL since the tp_call
+ * slot can receive NULL for this arg.
  */
 #define WRAP_TERNARY(method, generic) \
     static PyObject * \
     method(PyObject *proxy, PyObject *v, PyObject *w) { \
         UNWRAP(proxy); \
-        if (v != NULL) \
-            UNWRAP(v); \
+        UNWRAP(v); \
         if (w != NULL) \
             UNWRAP(w); \
         return generic(proxy, v, w); \