Remove redundant test for rl == NULL, that's already established

right after its allocation, and rl isn't re-assigned later.
This commit is contained in:
he 2014-09-01 19:46:55 +00:00
parent bedc9103e4
commit 0c1e81ec7e
1 changed files with 1 additions and 6 deletions

View File

@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ndis_pci.c,v 1.19 2012/10/27 17:18:23 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ndis_pci.c,v 1.20 2014/09/01 19:46:55 he Exp $");
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/sys/dev/if_ndis/if_ndis_pci.c,v 1.8.2.3 2005/03/31 04:24:36 wpaul Exp $");
#endif
@ -358,11 +358,6 @@ void ndis_attach_pci(device_t parent, device_t self, void *aux)
printf("pci interrupt: %s\n", pci_intr_string(pa->pa_pc, ih));
if(rl == NULL) {
sc->error = ENOMEM;
return;
}
/* save resource list in the softc */
sc->ndis_rl = rl;
sc->ndis_rescnt = rl->cprl_count;