svn commit: r185235 - head/sys/dev/fdc
Warner Losh
imp at FreeBSD.org
Sun Nov 23 15:04:29 PST 2008
Author: imp
Date: Sun Nov 23 23:04:28 2008
New Revision: 185235
URL: http://svn.freebsd.org/changeset/base/185235
Log:
Eliminate an unused variable reported by coverity
Submitted by: Ganbold
Modified:
head/sys/dev/fdc/fdc_pccard.c
Modified: head/sys/dev/fdc/fdc_pccard.c
==============================================================================
--- head/sys/dev/fdc/fdc_pccard.c Sun Nov 23 21:05:22 2008 (r185234)
+++ head/sys/dev/fdc/fdc_pccard.c Sun Nov 23 23:04:28 2008 (r185235)
@@ -85,10 +85,8 @@ fdc_pccard_alloc_resources(device_t dev,
static int
fdc_pccard_probe(device_t dev)
{
- const struct pccard_product *pp;
-
- if ((pp = pccard_product_lookup(dev, fdc_pccard_products,
- sizeof(fdc_pccard_products[0]), NULL)) != NULL) {
+ if (pccard_product_lookup(dev, fdc_pccard_products,
+ sizeof(fdc_pccard_products[0]), NULL) != NULL) {
device_set_desc(dev, "PC Card Floppy");
return (0);
}
More information about the svn-src-head
mailing list