summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2003-10-30 23:05:31 +0000
committerbrooks <brooks@FreeBSD.org>2003-10-30 23:05:31 +0000
commitf4e26f09ce407dc6ab5a0bc8d3f3f86dff018ff6 (patch)
tree91c32e1a971c31d7b7e3dec503270acd94ace84e /sys/dev
parent9183d53dd706fc6cf2da442eac0d791630796da2 (diff)
downloadFreeBSD-src-f4e26f09ce407dc6ab5a0bc8d3f3f86dff018ff6.zip
FreeBSD-src-f4e26f09ce407dc6ab5a0bc8d3f3f86dff018ff6.tar.gz
ifp->if_name can't be null when we just assigned a static string to it.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/awi/if_awi_pccard.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/awi/if_awi_pccard.c b/sys/dev/awi/if_awi_pccard.c
index 1a542e4..346802e 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);
OpenPOWER on IntegriCloud