Skip to content

Commit

Permalink
UBI: fix compile warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pmundt authored and Artem Bityutskiy committed Jul 18, 2007
1 parent 784c145 commit add0b43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/ubi/cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit add0b43

Please sign in to comment.