]> err.no Git - linux-2.6/commitdiff
UBI: fix compile warning
authorPaul Mundt <lethal@linux-sh.org>
Wed, 18 Jul 2007 09:39:45 +0000 (18:39 +0900)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:59:17 +0000 (16:59 +0300)
cdev.c whines in current git:

drivers/mtd/ubi/cdev.c: In function `major_to_device':
drivers/mtd/ubi/cdev.c:67: warning: control reaches end of non-void function

Shut it up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/cdev.c

index fb238d7ade3595d5707a54b792aa3adc236b50bd..fe4da1e96c52a67b1b79676ff281e1e4f6162b8b 100644 (file)
@@ -64,6 +64,7 @@ static struct ubi_device *major_to_device(int major)
                if (ubi_devices[i] && ubi_devices[i]->major == major)
                        return ubi_devices[i];
        BUG();
+       return NULL;
 }
 
 /**