X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Flcr%2Fes51919.c;h=b80a26c52868c42e559d49f8092e092693d76ad5;hb=6b7e644e5c5ca8fd501303a812293a00d830cd32;hp=af0dced9125bd376df8ec4f151fb0e8739adf1b0;hpb=e68c0eb4097e4a01d65c71f473a48c367e06609d;p=libsigrok.git diff --git a/src/lcr/es51919.c b/src/lcr/es51919.c index af0dced9..b80a26c5 100644 --- a/src/lcr/es51919.c +++ b/src/lcr/es51919.c @@ -741,14 +741,11 @@ static const char *const channel_names[] = { "P1", "P2" }; static int setup_channels(struct sr_dev_inst *sdi) { unsigned int i; - int ret; - - ret = SR_ERR_BUG; for (i = 0; i < ARRAY_SIZE(channel_names); i++) sr_channel_new(sdi, i, SR_CHANNEL_ANALOG, TRUE, channel_names[i]); - return ret; + return SR_OK; } SR_PRIV void es51919_serial_clean(void *priv)