X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoder.c;h=6290add071b64865cb36c9a392d15e7da6440d1f;hp=6dfeecae7fa1fa5a5ca6e1c55eb7e27641ffcc49;hb=1c9ac10f4b2c6e83184fe29bd32e090fcac211e7;hpb=dd93276bf6b7537b65cab270f66666bf23fbc585 diff --git a/decoder.c b/decoder.c index 6dfeeca..6290add 100644 --- a/decoder.c +++ b/decoder.c @@ -124,7 +124,7 @@ err_out: /** * Load a protocol decoder module into the embedded Python interpreter. * - * @param module_name The module name to be loaded. + * @param name The module name to be loaded. * * @return SRD_OK upon success, a (negative) error code otherwise. */ @@ -134,8 +134,6 @@ SRD_API int srd_decoder_load(const char *module_name) struct srd_decoder *d; int alen, ret, i; char **ann; - struct srd_probe *p; - GSList *l; srd_dbg("Loading protocol decoder '%s'.", module_name); @@ -224,19 +222,6 @@ SRD_API int srd_decoder_load(const char *module_name) if (get_probes(d, "optional_probes", &d->opt_probes) != SRD_OK) goto err_out; - /* - * Fix order numbers for the optional probes. - * - * Example: - * Required probes: r1, r2, r3. Optional: o1, o2, o3, o4. - * 'order' fields in the d->probes list = 0, 1, 2. - * 'order' fields in the d->opt_probes list = 3, 4, 5, 6. - */ - for (l = d->opt_probes; l; l = l->next) { - p = l->data; - p->order += g_slist_length(d->probes); - } - /* Store required fields in newly allocated strings. */ if (py_attr_as_str(d->py_dec, "id", &(d->id)) != SRD_OK) goto err_out;