From: Eric Blake Date: Tue, 2 Mar 2010 14:51:57 +0000 (-0700) Subject: build: silence coverity warning in node_device X-Git-Tag: v0.7.7~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84ef5aecca4fd18bf22932ceb2962440c21f6f0e;p=thirdparty%2Flibvirt.git 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. --- diff --git a/src/node_device/node_device_hal.c b/src/node_device/node_device_hal.c index 6cc28642d4..4bf445dbc5 100644 --- a/src/node_device/node_device_hal.c +++ b/src/node_device/node_device_hal.c @@ -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);