diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/atactl/atactl.c | 9 |
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; |