mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
Do not save errno in virUSBDeviceSearch
The virUSBDeviceFind* callers do not check errno after calling this function.
This commit is contained in:
parent
cb049b9ad4
commit
b914530d62
@ -202,11 +202,8 @@ virUSBDeviceSearch(unsigned int vendor,
|
||||
ret = list;
|
||||
|
||||
cleanup:
|
||||
if (dir) {
|
||||
int saved_errno = errno;
|
||||
if (dir)
|
||||
closedir(dir);
|
||||
errno = saved_errno;
|
||||
}
|
||||
|
||||
if (!ret)
|
||||
virObjectUnref(list);
|
||||
|
Loading…
Reference in New Issue
Block a user