]> err.no Git - linux-2.6/commitdiff
[PATCH] aoe: cleanup i_rdev usage
authorEric Sesterhenn <snakebyte@gmx.de>
Mon, 10 Jul 2006 11:45:32 +0000 (04:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:25 +0000 (13:24 -0700)
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>
drivers/block/aoe/aoechr.c

index 5327f553b4f59e13db2098b264e1628513c5c023..1bc1cf9603f19c4e4975bb63c1ff5ccbeb09a7cb 100644 (file)
@@ -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)