summaryrefslogtreecommitdiff
path: root/drivers/s390/char/vmur.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-02-01 03:23:55 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2021-02-23 18:25:29 +0300
commit6f24784f00f2b5862b367caeecc5cca22a77faa3 (patch)
treebcbdc0d7f18f5036f360bb61cc0c9447a25f348c /drivers/s390/char/vmur.c
parent9652c73246b980b9f2387916c35e02638d163472 (diff)
downloadlinux-6f24784f00f2b5862b367caeecc5cca22a77faa3.tar.xz
whack-a-mole: don't open-code iminor/imajor
several instances creeped back into the tree... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/s390/char/vmur.c')
-rw-r--r--drivers/s390/char/vmur.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/vmur.c b/drivers/s390/char/vmur.c
index 1bbf27b98cf6..68f49e2e964c 100644
--- a/drivers/s390/char/vmur.c
+++ b/drivers/s390/char/vmur.c
@@ -681,7 +681,7 @@ static int ur_open(struct inode *inode, struct file *file)
* We treat the minor number as the devno of the ur device
* to find in the driver tree.
*/
- devno = MINOR(file_inode(file)->i_rdev);
+ devno = iminor(file_inode(file));
urd = urdev_get_from_devno(devno);
if (!urd) {