From a36fdf66a3afef7accb28090dd6e74b2d848cf78 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 5 Aug 2020 08:46:28 +0300 Subject: [PATCH] local: add omitted return value read from close() in local_close() Patch 4b0a7a26182d86 ("local: handle error codes in local_close()") omitted one return value read for close(). Coverity caught that. This patch reads the return value for 'close(pdata->cancel_fd);' Signed-off-by: Alexandru Ardelean --- local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local.c b/local.c index 08e5278fb..a9a2f957e 100644 --- a/local.c +++ b/local.c @@ -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) {