From owner-svn-src-head@FreeBSD.ORG Wed Feb 18 18:36:14 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35F10106564A; Wed, 18 Feb 2009 18:36:14 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 24D0F8FC14; Wed, 18 Feb 2009 18:36:14 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1IIaEsm071557; Wed, 18 Feb 2009 18:36:14 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1IIaE15071556; Wed, 18 Feb 2009 18:36:14 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <200902181836.n1IIaE15071556@svn.freebsd.org> From: Alexander Motin Date: Wed, 18 Feb 2009 18:36:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188755 - head/sys/dev/ata X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 18:36:14 -0000 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 */