summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2003-08-30 22:50:33 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-30 22:50:33 -0700
commit2476962126efb1b717cb71cd4c249171cb4abc25 (patch)
tree14e4cca023b6ff1112952ba975096a0fa93a0511 /include/linux
parent5be694bdfc1e164b2af7d2c79f179065ba8d32ff (diff)
[PATCH] dev_t handling cleanups (3/12)
killed gratitious uses of kdev_t in tpqic02
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tpqic02.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/tpqic02.h b/include/linux/tpqic02.h
index f980d4ff01fe..f0dfcfa56273 100644
--- a/include/linux/tpqic02.h
+++ b/include/linux/tpqic02.h
@@ -587,10 +587,10 @@
* |___________________ Reserved for diagnostics during debugging.
*/
-#define TP_REWCLOSE(d) ((minor(d)&0x01) == 1) /* rewind bit */
+#define TP_REWCLOSE(d) ((d)&1) /* rewind bit */
/* rewind is only done if data has been transferred */
-#define TP_DENS(dev) ((minor(dev) >> 1) & 0x07) /* tape density */
-#define TP_UNIT(dev) ((minor(dev) >> 4) & 0x07) /* unit number */
+#define TP_DENS(d) (((d) >> 1) & 0x07) /* tape density */
+#define TP_UNIT(d) (((d) >> 4) & 0x07) /* unit number */
/* print excessive diagnostics */
#define TP_DIAGS(dev) (QIC02_TAPE_DEBUG & TPQD_DIAGS)