From: Paul Mundt Date: Wed, 18 Jul 2007 09:39:45 +0000 (+0900) Subject: UBI: fix compile warning X-Git-Tag: v2.6.23-rc1~495^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=add0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f;p=linux-2.6-omap-h63xx.git UBI: fix compile warning 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 Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index fb238d7ade3..fe4da1e96c5 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c @@ -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; } /**