nsstest: Drop useless @data check

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@redhat.com>
This commit is contained in:
Michal Privoznik 2016-03-24 14:54:58 +01:00
parent cd000d3a0b
commit 8c50daa1e1

View File

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