]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: silence coverity warning in node_device
authorEric Blake <eblake@redhat.com>
Tue, 2 Mar 2010 14:51:57 +0000 (07:51 -0700)
committerJim Meyering <meyering@redhat.com>
Tue, 2 Mar 2010 15:12:48 +0000 (16:12 +0100)
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.

src/node_device/node_device_hal.c

index 6cc28642d4ed5f66398ca9346838726765a61a07..4bf445dbc52c8cc2bd1987077f47f96e85262b28 100644 (file)
@@ -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);