From: Paul Mundt Date: Wed, 18 Jul 2007 09:39:45 +0000 (+0900) Subject: UBI: fix compile warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=add0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 fb238d7ade35..fe4da1e96c52 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; } /**