projects/linux·commit 2017b376

[PATCH] aoe: cleanup i_rdev usage

2017b376 · Eric Sesterhenn <[email protected]> · 2006-07-10 04:45:32 -07:00

Signed-off-by: Eric Sesterhenn <[email protected]>
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
2017b376c01a54bf7d26ad4f461abe9b5f9064fe
Parents
21d71f51

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/block/aoe/aoechr.cmodified+1−1View file

drivers/block/aoe/aoechr.c

View file
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c
index 5327f55..1bc1cf9 100644
--- a/drivers/block/aoe/aoechr.c
+++ b/drivers/block/aoe/aoechr.c
@@ -162,7 +162,7 @@ aoechr_open(struct inode *inode, struct file *filp)
{
int n, i;
- n = MINOR(inode->i_rdev);
+ n = iminor(inode);
filp->private_data = (void *) (unsigned long) n;
for (i = 0; i < ARRAY_SIZE(chardevs); ++i)