mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +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)
|
||||
return ubi_devices[i];
|
||||
BUG();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue