Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2009 18:36:14 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188755 - head/sys/dev/ata
Message-ID:  <200902181836.n1IIaE15071556@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Feb 18 18:36:13 2009
New Revision: 188755
URL: http://svn.freebsd.org/changeset/base/188755

Log:
  Remove unused variable.
  
  Submitted by:	ganbold

Modified:
  head/sys/dev/ata/ata-all.c

Modified: head/sys/dev/ata/ata-all.c
==============================================================================
--- head/sys/dev/ata/ata-all.c	Wed Feb 18 18:27:48 2009	(r188754)
+++ head/sys/dev/ata/ata-all.c	Wed Feb 18 18:36:13 2009	(r188755)
@@ -304,11 +304,10 @@ ata_suspend(device_t dev)
 int
 ata_resume(device_t dev)
 {
-    struct ata_channel *ch;
     int error;
 
     /* check for valid device */
-    if (!dev || !(ch = device_get_softc(dev)))
+    if (!dev || !device_get_softc(dev))
 	return ENXIO;
 
     /* reinit the devices, we dont know what mode/state they are in */



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