Gcc 4.6.2 complains that "end" can be used without being initialized: drivers/video/backlight/lp855x_bl.c: In function ‘lp855x_init_registers’: drivers/video/backlight/lp855x_bl.c:78:32: warning: ‘end’ may be used uninitialized in this function [-Wuninitialized] drivers/video/backlight/lp855x_bl.c:67:12: note: ‘end’ was declared here I've modified the function to return invalid if we don't recognize the id string. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c index 8f628b8..5e8153d 100644 --- a/drivers/video/backlight/lp855x_bl.c +++ b/drivers/video/backlight/lp855x_bl.c @@ -73,6 +73,8 @@ static int lp855x_is_valid_rom_area(struct lp855x *lp, u8 addr) } else if (strstr(id, "lp8556")) { start = EPROM_START; end = EPROM_END; + } else { + return 0; } return (addr >= start && addr <= end) ? 1 : 0; -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html