From owner-svn-src-head@FreeBSD.ORG Fri Aug 8 11:47:10 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 035263EA for ; Fri, 8 Aug 2014 11:47:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF777266D for ; Fri, 8 Aug 2014 11:47:09 +0000 (UTC) Received: from imp (uid 547) (envelope-from imp@FreeBSD.org) id 23ed by svn.freebsd.org (DragonFly Mail Agent v0.9+); Fri, 08 Aug 2014 11:47:09 +0000 From: Warner Losh Date: Fri, 8 Aug 2014 11:47:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269711 - head/sys/dev/amr X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e4b8bd.23ed.75e3e478@svn.freebsd.org> X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 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: Fri, 08 Aug 2014 11:47:10 -0000 Author: imp Date: Fri Aug 8 11:47:09 2014 New Revision: 269711 URL: http://svnweb.freebsd.org/changeset/base/269711 Log: Set but not used variables eliminated. Modified: head/sys/dev/amr/amr.c Modified: head/sys/dev/amr/amr.c ============================================================================== --- head/sys/dev/amr/amr.c Fri Aug 8 11:47:04 2014 (r269710) +++ head/sys/dev/amr/amr.c Fri Aug 8 11:47:09 2014 (r269711) @@ -563,7 +563,7 @@ amr_linux_ioctl_int(struct cdev *dev, u_ struct amr_linux_ioctl ali; void *dp, *temp; int error; - int adapter, len, ac_flags = 0; + int len, ac_flags = 0; int logical_drives_changed = 0; u_int32_t linux_version = 0x02100000; u_int8_t status; @@ -606,8 +606,6 @@ amr_linux_ioctl_int(struct cdev *dev, u_ else len = ali.ui.fcs.length; - adapter = (ali.ui.fcs.adapno) ^ 'm' << 8; - mb = (void *)&ali.mbox[0]; if ((ali.mbox[0] == FC_DEL_LOGDRV && ali.mbox[2] == OP_DEL_LOGDRV) || /* delete */ @@ -761,7 +759,7 @@ amr_ioctl(struct cdev *dev, u_long cmd, void *dp, *au_buffer; unsigned long au_length, real_length; unsigned char *au_cmd; - int *au_statusp, au_direction; + int *au_statusp; int error; struct amr_passthrough *ap; /* 60 bytes */ int logical_drives_changed = 0; @@ -793,7 +791,6 @@ amr_ioctl(struct cdev *dev, u_long cmd, au_cmd = arg.au32->au_cmd; au_buffer = (void *)(u_int64_t)arg.au32->au_buffer; au_length = arg.au32->au_length; - au_direction = arg.au32->au_direction; au_statusp = &arg.au32->au_status; break; #endif @@ -803,7 +800,6 @@ amr_ioctl(struct cdev *dev, u_long cmd, au_cmd = arg.au->au_cmd; au_buffer = (void *)arg.au->au_buffer; au_length = arg.au->au_length; - au_direction = arg.au->au_direction; au_statusp = &arg.au->au_status; break;