From 0f2f39c865f16a8a812fee56cea7cb70b3e00dc4 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 30 Oct 2003 23:05:31 +0000 Subject: [PATCH] ifp->if_name can't be null when we just assigned a static string to it. --- sys/dev/awi/if_awi_pccard.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/awi/if_awi_pccard.c b/sys/dev/awi/if_awi_pccard.c index 1a542e46862..346802ef2da 100644 --- a/sys/dev/awi/if_awi_pccard.c +++ b/sys/dev/awi/if_awi_pccard.c @@ -143,11 +143,6 @@ awi_pccard_attach(device_t dev) ifp->if_name = "awi"; ifp->if_unit = device_get_unit(dev); - if (ifp->if_name == NULL) { - printf("awi%d: awi_pccard_attach: cannot get device name\n", - device_get_unit(dev)); - goto fail; - } snprintf(sc->sc_dev.dv_xname, sizeof(sc->sc_dev.dv_xname), "%s%d", ifp->if_name, ifp->if_unit);