build: avoid warning about return-with-value in void function

* tools/virsh.c: Just "return;", not "return NULL;".
This commit is contained in:
Jim Meyering 2010-02-26 11:50:34 +01:00
parent 7ca954cf26
commit 303cf4dbff
1 changed files with 1 additions and 1 deletions

View 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) {