[PATCH 1/2] nsstest: Drop useless @data check

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

 



The variable is dereferenced prior its check for NULL. The check
itself does not make much sense anyway - it's our test, we know
we are not passing NULL.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 tests/nsstest.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/nsstest.c b/tests/nsstest.c
index 9d7bc40..7399d9a 100644
--- a/tests/nsstest.c
+++ b/tests/nsstest.c
@@ -51,9 +51,6 @@ testGetHostByName(const void *opaque)
     int rv, tmp_errno = 0, tmp_herrno = 0;
     size_t i = 0, j = 0;
 
-    if (!data)
-        goto cleanup;
-
     memset(&resolved, 0, sizeof(resolved));
 
     rv = _nss_libvirt_gethostbyname2_r(data->hostname,
-- 
2.7.3

--
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