Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit add0b43c authored by Paul Mundt's avatar Paul Mundt Committed by Artem Bityutskiy
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 784c1454
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}

/**