Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 2008 23:04:29 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185235 - head/sys/dev/fdc
Message-ID:  <200811232304.mANN4TMu066845@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811232304.mANN4TMu066845>