summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/cdev.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-07-18 11:39:45 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-07-18 15:59:17 +0200
commitadd0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f (patch)
tree7a7aaab48f6ac1cff65ad920e306ffe79620fb47 /drivers/mtd/ubi/cdev.c
parentUBI: fix error handling in erase worker (diff)
downloadlinux-add0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f.tar.xz
linux-add0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f.zip
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 <lethal@linux-sh.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r--drivers/mtd/ubi/cdev.c1
1 files changed, 1 insertions, 0 deletions
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;
}
/**