mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-07 23:25:45 +00:00
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>
This commit is contained in:
parent
784c145444
commit
add0b43ca6
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ static struct ubi_device *major_to_device(int major)
|
||||||
if (ubi_devices[i] && ubi_devices[i]->major == major)
|
if (ubi_devices[i] && ubi_devices[i]->major == major)
|
||||||
return ubi_devices[i];
|
return ubi_devices[i];
|
||||||
BUG();
|
BUG();
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue