From 0b41fd998b452c7ec8d7ba1da74ab2d3aeca7668 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 10 Apr 2003 04:36:02 +0000 Subject: Make sure that pp_name is non-null before setting the device description. This allows us to rely entirely on the CIS entries if necessary... --- sys/dev/awi/if_awi_pccard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/awi') diff --git a/sys/dev/awi/if_awi_pccard.c b/sys/dev/awi/if_awi_pccard.c index d9c3b59..4e6150d 100644 --- a/sys/dev/awi/if_awi_pccard.c +++ b/sys/dev/awi/if_awi_pccard.c @@ -85,7 +85,8 @@ awi_pccard_match(device_t dev) if ((pp = pccard_product_lookup(dev, awi_pccard_products, sizeof(awi_pccard_products[0]), NULL)) != NULL) { - device_set_desc(dev, pp->pp_name); + if (pp->pp_name != NULL) + device_set_desc(dev, pp->pp_name); return 0; } return ENXIO; -- cgit v1.1