]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: Drop unneeded check, g_free() handles NULL fine.
authorUwe Hermann <redacted>
Sat, 28 Jan 2012 20:26:26 +0000 (21:26 +0100)
committerUwe Hermann <redacted>
Sat, 28 Jan 2012 20:26:26 +0000 (21:26 +0100)
controller.c

index ac0d73fc1be80a23cbbbe14c6183376fef687500..20927cf9b80525a32b5b60f960dc60471cbd6734 100644 (file)
@@ -272,8 +272,7 @@ err_out:
        Py_XDECREF(py_di_options);
        Py_XDECREF(py_dec_optkeys);
        Py_XDECREF(py_dec_options);
        Py_XDECREF(py_di_options);
        Py_XDECREF(py_dec_optkeys);
        Py_XDECREF(py_dec_options);
-       if (key)
-               g_free(key);
+       g_free(key);
        if (PyErr_Occurred())
                catch_exception("Stray exception in srd_instance_set_options().");
 
        if (PyErr_Occurred())
                catch_exception("Stray exception in srd_instance_set_options().");