[PATCH] aoe: cleanup i_rdev usage
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
21d71f513b
commit
2017b376c0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue