mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
build: silence coverity warning in node_device
All other uses of get_str_prop in this file that ignored failure explicitly cast to void. * src/node_device/node_device_hal.c (dev_create): Silence coverity warning.
This commit is contained in:
parent
bc0f737dd7
commit
84ef5aecca
@ -463,7 +463,7 @@ static void dev_create(const char *udi)
|
||||
goto cleanup;
|
||||
|
||||
/* Some devices don't have a path in sysfs, so ignore failure */
|
||||
get_str_prop(ctx, udi, "linux.sysfs_path", &devicePath);
|
||||
(void)get_str_prop(ctx, udi, "linux.sysfs_path", &devicePath);
|
||||
|
||||
dev = virNodeDeviceAssignDef(&driverState->devs,
|
||||
def);
|
||||
|
Loading…
x
Reference in New Issue
Block a user