summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-16 04:39:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-16 04:39:36 +0000
commitb92038334f67f93c3319be1a8e076954039890eb (patch)
tree80f521632f12aefc820176435b6fef0510eff1ad /sbin
parentb0a7d2f6503a7398c8875cb7f26f45c62730167b (diff)
remove unused variables
Diffstat (limited to 'sbin')
-rw-r--r--sbin/atactl/atactl.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sbin/atactl/atactl.c b/sbin/atactl/atactl.c
index 7223145dcd6..6c2535995aa 100644
--- a/sbin/atactl/atactl.c
+++ b/sbin/atactl/atactl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atactl.c,v 1.33 2004/02/19 21:22:07 grange Exp $ */
+/* $OpenBSD: atactl.c,v 1.34 2004/09/16 04:39:35 deraadt Exp $ */
/* $NetBSD: atactl.c,v 1.4 1999/02/24 18:49:14 jwise Exp $ */
/*-
@@ -394,9 +394,7 @@ usage(void)
void
ata_command(struct atareq *req)
{
- int error;
-
- if ((error = ioctl(fd, ATAIOCCOMMAND, req)) == -1)
+ if (ioctl(fd, ATAIOCCOMMAND, req) == -1)
err(1, "ATAIOCCOMMAND failed");
switch (req->retsts) {
@@ -472,7 +470,6 @@ void
device_dump(int argc, char *argv[])
{
unsigned char buf[131072];
- int error;
atagettrace_t agt;
int total;
int p = 0;
@@ -493,7 +490,7 @@ device_dump(int argc, char *argv[])
agt.buf_size = sizeof(buf);
agt.buf = buf;
- if ((error = ioctl(fd, ATAIOGETTRACE, &agt)) == -1)
+ if (ioctl(fd, ATAIOGETTRACE, &agt) == -1)
err(1, "ATAIOGETTRACE failed");
total = agt.bytes_copied;