Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=add0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f
Commit:     add0b43ca67bf281ef7ac8ab47e9ee7b2d97a69f
Parent:     784c145444e7dd58ae740d406155b72ac658f151
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 18 18:39:45 2007 +0900
Committer:  Artem Bityutskiy <[EMAIL PROTECTED]>
CommitDate: Wed Jul 18 16:59:17 2007 +0300

    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]>
---
 drivers/mtd/ubi/cdev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index fb238d7..fe4da1e 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -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;
 }
 
 /**
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to