From 3ebad253e8e91a4e8a655e23a49721d3380ff1e4 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 2 Aug 2019 17:16:00 +0200 Subject: [PATCH] device/bluetooth: explicitly ignore return value of ioctl() in nm_bluez5_dun_cleanup() Coverity doesn't like us not checking the result. (cherry picked from commit 526601e4f328837fdccb7447ceac0243616d5e2c) --- src/devices/bluetooth/nm-bluez5-dun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/bluetooth/nm-bluez5-dun.c b/src/devices/bluetooth/nm-bluez5-dun.c index 04859f9ac7..b9a1fa0ab8 100644 --- a/src/devices/bluetooth/nm-bluez5-dun.c +++ b/src/devices/bluetooth/nm-bluez5-dun.c @@ -386,7 +386,7 @@ nm_bluez5_dun_cleanup (NMBluez5DunContext *context) struct rfcomm_dev_req req = { 0 }; req.dev_id = context->rfcomm_id; - ioctl (context->rfcomm_fd, RFCOMMRELEASEDEV, &req); + (void) ioctl (context->rfcomm_fd, RFCOMMRELEASEDEV, &req); context->rfcomm_id = -1; } nm_close (context->rfcomm_fd);