Date: Fri, 8 Aug 2014 11:47:09 +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: r269711 - head/sys/dev/amr Message-ID: <53e4b8bd.23ed.75e3e478@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e4b8bd.23ed.75e3e478>