Re: [PATCH] tty/serial: Fix uninitialized variable warning

2013-03-15 Thread Grant Likely
On Fri, Mar 15, 2013 at 8:30 PM, Greg Kroah-Hartman wrote: > On Mon, Mar 04, 2013 at 09:35:07AM +0800, Grant Likely wrote: >> drivers/tty/serial/8250/8250.c: In function 'serial_unlink_irq_chain': >> drivers/tty/serial/8250/8250.c:1676:19: warning: 'i' may be used >> uninitialized in this functio

Re: [PATCH] tty/serial: Fix uninitialized variable warning

2013-03-15 Thread Greg Kroah-Hartman
On Mon, Mar 04, 2013 at 09:35:07AM +0800, Grant Likely wrote: > drivers/tty/serial/8250/8250.c: In function 'serial_unlink_irq_chain': > drivers/tty/serial/8250/8250.c:1676:19: warning: 'i' may be used > uninitialized in this function > > There isn't an actual bug here since the function tests th

Re: [PATCH] tty/serial: Fix uninitialized variable warning

2013-03-04 Thread Jiri Slaby
On 03/04/2013 03:36 AM, Peter Hurley wrote: > On Mon, 2013-03-04 at 09:35 +0800, Grant Likely wrote: >> drivers/tty/serial/8250/8250.c: In function 'serial_unlink_irq_chain': >> drivers/tty/serial/8250/8250.c:1676:19: warning: 'i' may be used >> uninitialized in this function >> >> There isn't an

Re: [PATCH] tty/serial: Fix uninitialized variable warning

2013-03-03 Thread Peter Hurley
On Mon, 2013-03-04 at 09:35 +0800, Grant Likely wrote: > drivers/tty/serial/8250/8250.c: In function 'serial_unlink_irq_chain': > drivers/tty/serial/8250/8250.c:1676:19: warning: 'i' may be used > uninitialized in this function > > There isn't an actual bug here since the function tests the condi

[PATCH] tty/serial: Fix uninitialized variable warning

2013-03-03 Thread Grant Likely
drivers/tty/serial/8250/8250.c: In function 'serial_unlink_irq_chain': drivers/tty/serial/8250/8250.c:1676:19: warning: 'i' may be used uninitialized in this function There isn't an actual bug here since the function tests the condition that would cause i to be uninitialized before dereferencing