mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
cd000d3a0b
commit
8c50daa1e1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user