Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/if_ndis Remove redundant test for rl == NULL, that's...
details: https://anonhg.NetBSD.org/src/rev/11ff42244edc
branches: trunk
changeset: 331952:11ff42244edc
user: he <he%NetBSD.org@localhost>
date: Mon Sep 01 19:46:55 2014 +0000
description:
Remove redundant test for rl == NULL, that's already established
right after its allocation, and rl isn't re-assigned later.
diffstat:
sys/dev/if_ndis/if_ndis_pci.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diffs (24 lines):
diff -r 8853583774c8 -r 11ff42244edc sys/dev/if_ndis/if_ndis_pci.c
--- a/sys/dev/if_ndis/if_ndis_pci.c Mon Sep 01 19:01:55 2014 +0000
+++ b/sys/dev/if_ndis/if_ndis_pci.c Mon Sep 01 19:46:55 2014 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index