Skip to content

Commit

Permalink
Merge pull request #581 from analogdevicesinc/libiio-fix-ret
Browse files Browse the repository at this point in the history
local: add omitted return value read from close() in local_close()
  • Loading branch information
rgetz authored Aug 10, 2020
2 parents ef12218 + a36fdf6 commit b23a03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ static int local_close(const struct iio_device *dev)
pdata->fd = -1;

if (pdata->cancel_fd > -1) {
close(pdata->cancel_fd);
ret1 = close(pdata->cancel_fd);
pdata->cancel_fd = -1;

if (ret1) {
Expand Down

0 comments on commit b23a03b

Please sign in to comment.