]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
build: avoid warning about return-with-value in void function
authorJim Meyering <meyering@redhat.com>
Fri, 26 Feb 2010 10:50:34 +0000 (11:50 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 26 Feb 2010 16:12:00 +0000 (17:12 +0100)
* tools/virsh.c: Just "return;", not "return NULL;".

tools/virsh.c

index f7fd7d494124872351db08b322b3f8fb77808c51..3b1011ccf69533f17b8844b6ff06fff6924d218a 100644 (file)
@@ -360,7 +360,7 @@ virshReportError(vshControl *ctl)
          * no error was ever raised, so just ignore */
         last_error = virSaveLastError();
         if (!last_error || last_error->code == VIR_ERR_OK)
-            return NULL;
+            return;
     }
 
     if (last_error->code == VIR_ERR_OK) {