From f8c290cdae5e9f9b33d014cd3b98b1affa45da4f Mon Sep 17 00:00:00 2001
From: Iustin Pop <iusty@k1024.org>
Date: Sun, 29 Jun 2008 19:36:24 +0200
Subject: [PATCH] Simplify the return None cases

---
 xattr.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/xattr.c b/xattr.c
index 6271c4e..1555c23 100644
--- a/xattr.c
+++ b/xattr.c
@@ -176,8 +176,7 @@ pysetxattr(PyObject *self, PyObject *args)
     }
 
     /* Return the result */
-    Py_INCREF(Py_None);
-    return Py_None;
+    Py_RETURN_NONE;
 }
 
 static char __pyremovexattr_doc__[] =
@@ -218,8 +217,7 @@ pyremovexattr(PyObject *self, PyObject *args)
     }
 
     /* Return the result */
-    Py_INCREF(Py_None);
-    return Py_None;
+    Py_RETURN_NONE;
 }
 
 static char __pylistxattr_doc__[] =
-- 
2.39.5