X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/ed6e13d9ce88f2cc1decf9a1defe381613274d27..bd2fb79eea309828694a645c469f16cff554cd81:/src/am7xxx.c diff --git a/src/am7xxx.c b/src/am7xxx.c index 006b216..3334615 100644 --- a/src/am7xxx.c +++ b/src/am7xxx.c @@ -837,11 +837,12 @@ static int scan_devices(am7xxx_context *ctx, scan_op op, open_device_index, list[i], dev); - if (ret < 0) { + if (ret < 0) debug(ctx, "open_device failed\n"); - goto out; - } + /* exit the loop unconditionally after + * attempting to open the device + * requested by the user */ goto out; } current_index++;