svn commit: r188755 - head/sys/dev/ata

Alexander Motin mav at FreeBSD.org
Wed Feb 18 10:36:14 PST 2009


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 */


More information about the svn-src-head mailing list