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 526601e4f3
)
This commit is contained in:
@@ -386,7 +386,7 @@ nm_bluez5_dun_cleanup (NMBluez5DunContext *context)
|
|||||||
struct rfcomm_dev_req req = { 0 };
|
struct rfcomm_dev_req req = { 0 };
|
||||||
|
|
||||||
req.dev_id = context->rfcomm_id;
|
req.dev_id = context->rfcomm_id;
|
||||||
ioctl (context->rfcomm_fd, RFCOMMRELEASEDEV, &req);
|
(void) ioctl (context->rfcomm_fd, RFCOMMRELEASEDEV, &req);
|
||||||
context->rfcomm_id = -1;
|
context->rfcomm_id = -1;
|
||||||
}
|
}
|
||||||
nm_close (context->rfcomm_fd);
|
nm_close (context->rfcomm_fd);
|
||||||
|
Reference in New Issue
Block a user