Do not save errno in virUSBDeviceSearch

The virUSBDeviceFind* callers do not check errno after calling
this function.
This commit is contained in:
Ján Tomko 2016-06-21 13:19:19 +02:00
parent cb049b9ad4
commit b914530d62

View File

@ -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);