aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amr/amr.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2014-08-08 11:47:09 +0000
committerWarner Losh <imp@FreeBSD.org>2014-08-08 11:47:09 +0000
commit0f31ca621740a4706ba1dc44c3f2ff028145326c (patch)
tree612e080ff57cea50647f72b4cfaa65ca3b7301a3 /sys/dev/amr/amr.c
parent04b7478426060f0457563a8a0449f524c80a30a2 (diff)
downloadsrc-0f31ca621740a4706ba1dc44c3f2ff028145326c.tar.gz
src-0f31ca621740a4706ba1dc44c3f2ff028145326c.zip
Set but not used variables eliminated.
Notes
Notes: svn path=/head/; revision=269711
Diffstat (limited to 'sys/dev/amr/amr.c')
-rw-r--r--sys/dev/amr/amr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c
index 03a69858d053..faa92d07e436 100644
--- a/sys/dev/amr/amr.c
+++ b/sys/dev/amr/amr.c
@@ -563,7 +563,7 @@ amr_linux_ioctl_int(struct cdev *dev, u_long cmd, caddr_t addr, int32_t flag,
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_long cmd, caddr_t addr, int32_t flag,
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, caddr_t addr, int32_t flag, struct threa
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, caddr_t addr, int32_t flag, struct threa
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, caddr_t addr, int32_t flag, struct threa
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;