linux/drivers/staging/lirc
Jarod Wilson 211673991e Staging: lirc: fix compiler warning
On Fri, Aug 13, 2010 at 03:38:40PM +0200, Dan Carpenter wrote:
> Speak of left over stuff, it's weird that I didn't notice this before
> but gcc complains about an unitialized variable in
> imon_incoming_packet().
>
> drivers/staging/lirc/lirc_imon.c: In function ‘imon_incoming_packet’:
> drivers/staging/lirc/lirc_imon.c:661: warning: ‘chunk_num’ may be used
> 	uninitialized in this function
>
> I don't know how to fix that, but it looks important.

Ew. Yeah, that doesn't look so hot like it is right now. The old lirc_imon
driver had chunk_num = buf[7], and made much more extensive use of
chunk_num. Simply removing chunk_num and using buf[7] should be fine.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-31 14:49:22 -07:00
..
Kconfig V4L/DVB: STAGING: remove lirc_ene0100 driver 2010-08-08 23:43:00 -03:00
lirc_bt829.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_ene0100.h
lirc_i2c.c V4L/DVB: staging/lirc: add lirc_i2c driver 2010-08-02 16:43:22 -03:00
lirc_igorplugusb.c V4L/DVB: staging/lirc: add lirc_igorplugusb driver 2010-08-02 16:43:23 -03:00
lirc_imon.c Staging: lirc: fix compiler warning 2010-08-31 14:49:22 -07:00
lirc_it87.c V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage 2010-08-08 23:42:57 -03:00
lirc_it87.h V4L/DVB: staging/lirc: add lirc_it87 driver 2010-08-02 16:43:26 -03:00
lirc_ite8709.c V4L/DVB: staging/lirc: add lirc_ite8709 driver 2010-08-02 16:43:25 -03:00
lirc_parallel.c V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage 2010-08-08 23:42:57 -03:00
lirc_parallel.h V4L/DVB: staging/lirc: add lirc_parallel driver 2010-08-02 16:43:27 -03:00
lirc_sasem.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_serial.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_sir.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_ttusbir.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_zilog.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
Makefile V4L/DVB: STAGING: remove lirc_ene0100 driver 2010-08-08 23:43:00 -03:00
TODO V4L/DVB: staging/lirc: wire up Kconfig and Makefile bits 2010-08-02 16:43:34 -03:00
TODO.lirc_i2c V4L/DVB: staging: Add an specific TODO note for lirc_i2c 2010-08-02 16:43:23 -03:00