Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git] / src / py-common / py-common.c
index ac780034ee0c661b7860db5a71b563b78cd739db..4fea4d27b5475ecfa5c6c28208ef8de3a0d79795 100644 (file)
@@ -44,9 +44,9 @@ GString *bt_py_common_format_exception(int log_level)
        const char *format_exc_func_name;
        Py_ssize_t i;
 
-       BT_ASSERT(PyErr_Occurred() != NULL);
+       BT_ASSERT(PyErr_Occurred());
        PyErr_Fetch(&type, &value, &traceback);
-       BT_ASSERT(type != NULL);
+       BT_ASSERT(type);
 
        /* Make sure `value` is what we expected: an instance of `type` */
        PyErr_NormalizeException(&type, &value, &traceback);
This page took 0.022809 seconds and 4 git commands to generate.