atl2: resolve Coverity warnings

This commit is contained in:
David van Moolenbroek 2012-07-27 14:51:52 +00:00
parent 0ae9652177
commit da915d36b7

View file

@ -462,7 +462,9 @@ static int atl2_probe(int skip)
/* Find a matching PCI device. /* Find a matching PCI device.
*/ */
u16_t vid, did; u16_t vid, did;
#if VERBOSE
char *dname; char *dname;
#endif
int r, devind; int r, devind;
pci_init(); pci_init();
@ -477,10 +479,12 @@ static int atl2_probe(int skip)
return -1; return -1;
} }
#if VERBOSE
dname = pci_dev_name(vid, did); dname = pci_dev_name(vid, did);
ATL2_DEBUG(("ATL2: found %s (%x/%x) at %s\n", ATL2_DEBUG(("ATL2: found %s (%x/%x) at %s\n",
dname ? dname : "<unknown>", vid, did, dname ? dname : "<unknown>", vid, did,
pci_slot_name(devind))); pci_slot_name(devind)));
#endif
pci_reserve(devind); pci_reserve(devind);