qemu: Fix return check on virHashAddEntry call

Luckily it only returns 0 or -1
This commit is contained in:
John Ferlan 2017-09-15 07:36:55 -04:00
parent 304e0f6d16
commit 1f8528c2b8

View File

@ -1300,7 +1300,7 @@ qemuSharedDeviceEntryInsert(virQEMUDriverPtr driver,
entry->ref = 1;
if (virHashAddEntry(driver->sharedDevices, key, entry))
if (virHashAddEntry(driver->sharedDevices, key, entry) < 0)
goto error;
}