From 63e45b51b02b6d5ffa163514395f0140569bae00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Wed, 9 May 2001 13:01:10 +0000 Subject: [PATCH] Remove the error var, it hides the real one. PR 27213. BTW the CDIOCREADAUDIO ioctl is deprecated, its not longer needed and was an ugly hack from start on. --- sys/dev/ata/atapi-cd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 4e79c7467173..bbb4340cae1f 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -812,7 +812,7 @@ acdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) int32_t lba; caddr_t buffer, ubuf = args->buffer; int8_t ccb[16]; - int frames, error = 0; + int frames; if (!cdp->toc.hdr.ending_track) { error = EIO;