mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
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:
parent
3ebeb43c5f
commit
3ebad253e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue