summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/fd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 053e75d6e0c..5561da1b089 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1400,7 +1400,6 @@ fdioctl(dev, cmd, addr, flag)
int flag;
{
struct fd_softc *fd = fdcd.cd_devs[FDUNIT(dev)];
- struct mtop *mtop;
struct disklabel buffer;
int error;
@@ -1442,8 +1441,7 @@ fdioctl(dev, cmd, addr, flag)
return error;
case MTIOCTOP:
- mtop = (struct mtop *)addr;
- if (mtop->mt_op != MTOFFL)
+ if (((struct mtop *)addr)->mt_op != MTOFFL)
return EIO;
#ifdef COMPAT_SUNOS
case SUNOS_FDIOCEJECT: