From: David van Moolenbroek Date: Fri, 27 Jul 2012 14:51:52 +0000 (+0000) Subject: atl2: resolve Coverity warnings X-Git-Tag: v3.2.1~425 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=da915d36b7e5ddb036a768aeaf0796e3490fa10e;p=minix.git atl2: resolve Coverity warnings --- diff --git a/drivers/atl2/atl2.c b/drivers/atl2/atl2.c index 157121bdc..60c2ecd6d 100644 --- a/drivers/atl2/atl2.c +++ b/drivers/atl2/atl2.c @@ -462,7 +462,9 @@ static int atl2_probe(int skip) /* Find a matching PCI device. */ u16_t vid, did; +#if VERBOSE char *dname; +#endif int r, devind; pci_init(); @@ -477,10 +479,12 @@ static int atl2_probe(int skip) return -1; } +#if VERBOSE dname = pci_dev_name(vid, did); ATL2_DEBUG(("ATL2: found %s (%x/%x) at %s\n", dname ? dname : "", vid, did, pci_slot_name(devind))); +#endif pci_reserve(devind);