From: Paul Mundt Date: Wed, 18 Jul 2007 09:39:45 +0000 (+0900) Subject: UBI: fix compile warning X-Git-Tag: v3.12-rc1~28089^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=add0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f;p=kernel%2Fkernel-generic.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 fb238d7..fe4da1e 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; } /**