[PATCH] datatypes: removing unnecessary return statement.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a wrong 'return' statement after a 'goto' statement inside the
function virConnectCloseCallbackDataRegister(). This commit only removes
the 'return'.

Signed-off-by: Julio Faracco <jcfaracco@xxxxxxxxx>
---
 src/datatypes.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/datatypes.c b/src/datatypes.c
index 59ba956..46414ae 100644
--- a/src/datatypes.c
+++ b/src/datatypes.c
@@ -193,7 +193,6 @@ void virConnectCloseCallbackDataRegister(virConnectCloseCallbackDataPtr closeDat
         VIR_WARN("Attempt to register callback on armed"
                  " close callback object %p", closeData);
         goto cleanup;
-        return;
     }
 
     closeData->conn = virObjectRef(conn);
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux