summaryrefslogtreecommitdiff
path: root/controller.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-20 22:23:27 +0100
committerBert Vermeulen <bert@biot.com>2012-01-21 15:06:21 +0100
commit11ea8ae1b2279566125978766735a26252dff412 (patch)
tree1affb222c19d38a3f42d5b30629bce8b45b33aa6 /controller.c
parentd42fc6ee118ff673cef1c4ffbce0c7f603519f63 (diff)
downloadlibsigrokdecode-11ea8ae1b2279566125978766735a26252dff412.tar.gz
libsigrokdecode-11ea8ae1b2279566125978766735a26252dff412.zip
srd: decoder class structure check belongs in module loader
Diffstat (limited to 'controller.c')
-rw-r--r--controller.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/controller.c b/controller.c
index ebda088..fa67004 100644
--- a/controller.c
+++ b/controller.c
@@ -186,11 +186,6 @@ int srd_instance_set_options(struct srd_decoder_instance *di,
py_dec_options = py_dec_optkeys = py_di_options = py_optval = NULL;
py_optlist = py_classval = NULL;
py_dec_options = PyObject_GetAttrString(di->decoder->py_dec, "options");
- if (!PyDict_Check(py_dec_options)) {
- srd_err("Protocol decoder %s options is not a dictionary.",
- di->decoder->name);
- goto err_out;
- }
/* All of these are synthesized objects, so they're good. */
py_dec_optkeys = PyDict_Keys(py_dec_options);