RE: [patch] backlight: lp855x_bl: silence a compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Dan Carpenter [mailto:dan.carpenter@xxxxxxxxxx]
> Sent: Wednesday, February 01, 2012 11:39 PM
> To: Richard Purdie; Kim@elgon.mountain; Kim, Milo
> Cc: Florian Tobias Schandinat; linux-fbdev@xxxxxxxxxxxxxxx; kernel-
> janitors@xxxxxxxxxxxxxxx
> Subject: [patch] backlight: lp855x_bl: silence a compiler warning
> 
> 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>

Acked-by: Milo(Woogyom) Kim <milo.kim@xxxxxx>

Thanks !

Best Regards,
Milo -
 

��.n��������+%������w��{.n����z�ޗ�����n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux