Skip to content

Commit add0b43

Browse files
pmundtArtem Bityutskiy
authored andcommitted
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 <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
1 parent 784c145 commit add0b43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/ubi/cdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ static struct ubi_device *major_to_device(int major)
6464
if (ubi_devices[i] && ubi_devices[i]->major == major)
6565
return ubi_devices[i];
6666
BUG();
67+
return NULL;
6768
}
6869

6970
/**

0 commit comments

Comments
 (0)