diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-21 20:06:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-21 20:06:36 +0000 |
commit | 5ba2f2f931c7ecdd10b03465038c67705bfde182 (patch) | |
tree | 8cf1dfd40c4f0d2e14911fad3bc3f6cefccb2847 /sys/arch/sparc/dev | |
parent | ab2aa3063ff3c37f49f3243507993982a314c165 (diff) |
simplify
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/fd.c | 4 |
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: |