1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

nss-resolve: remove dead code

ifindex < 0 was already checked before entering the loop

Found by coverity. Fixes: CID#1237609
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-09-17 20:48:39 +02:00
parent 6c8aaf0c1b
commit 4eef5b7441

View File

@ -466,11 +466,6 @@ enum nss_status _nss_resolve_gethostbyname3_r(
goto fail;
}
if (ifindex < 0) {
r = -EINVAL;
goto fail;
}
memcpy(r_addr + i*ALIGN(alen), a, alen);
i++;
}