summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-18 00:01:05 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-18 00:01:05 +0200
commit7969d8035530d40753c4f880c90a4e90f9679ccc (patch)
treeb749d364c36c1dd457e1869508c3cea8792ae002 /util.c
parent4e7ccaf9f133106786fd85a432ae23e11d9dcea2 (diff)
downloadlibsigrokdecode-7969d8035530d40753c4f880c90a4e90f9679ccc.tar.gz
libsigrokdecode-7969d8035530d40753c4f880c90a4e90f9679ccc.zip
Random whitespace/cosmetic/consistency fixes.
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/util.c b/util.c
index 7c09f6d..442d0a6 100644
--- a/util.c
+++ b/util.c
@@ -490,7 +490,6 @@ SRD_PRIV GVariant *py_obj_to_variant(PyObject *py_obj)
}
if (!var)
srd_exception_catch("Failed to extract string value");
-
} else if (PyLong_Check(py_obj)) { /* integer */
int64_t val;
@@ -499,7 +498,6 @@ SRD_PRIV GVariant *py_obj_to_variant(PyObject *py_obj)
var = g_variant_new_int64(val);
else
srd_exception_catch("Failed to extract integer value");
-
} else if (PyFloat_Check(py_obj)) { /* float */
double val;
@@ -508,7 +506,6 @@ SRD_PRIV GVariant *py_obj_to_variant(PyObject *py_obj)
var = g_variant_new_double(val);
else
srd_exception_catch("Failed to extract float value");
-
} else {
srd_err("Failed to extract value of unsupported type.");
}