diff options
Diffstat (limited to 'binding')
-rw-r--r-- | binding/iiodevices-binding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/iiodevices-binding.c b/binding/iiodevices-binding.c index 61e43ca..b5a7588 100644 --- a/binding/iiodevices-binding.c +++ b/binding/iiodevices-binding.c @@ -550,8 +550,8 @@ static void subscribe(struct afb_req request) client = add_new_client(&iio_infos[i], iioelts, u_period); init_dev(client); if(!client->dev) { - deinit_client_sub(client); afb_req_fail_f(request, "failed", "No %s device found", client->infos->dev_name); + deinit_client_sub(client); return; } init_channel(client, iioelts); |