Jeff Garzik 80060362aa [WATCHDOG] watchdog/iTCO_wdt: fix bug related to gcc uninit warning
gcc emits the following warning:

drivers/char/watchdog/iTCO_wdt.c: In function ‘iTCO_wdt_ioctl’:
drivers/char/watchdog/iTCO_wdt.c:429: warning: ‘time_left’ may be used uninitialized in this function

This indicates a condition near enough to a bug, to want to fix.
iTCO_wdt_get_timeleft() stores a value in 'time_left' iff
iTCO_version==(1 or 2).  This driver only supports versions
1 or 2, so this is ok.  However, since (a) the return value of
iTCO_wdt_get_timeleft() is handled anyway, (b) it fixes the warning,
and (c) it future-proofs the driver, we go ahead and add the obvious
return value.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
2006-10-11 23:12:31 +02:00
..
2006-10-02 07:57:14 -07:00
2006-08-01 10:37:25 +10:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-04 07:55:13 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-04 07:55:13 -07:00
2006-10-04 07:55:13 -07:00
2005-04-16 15:20:36 -07:00
2006-10-02 07:57:14 -07:00
2006-10-02 07:57:14 -07:00
2006-10-02 07:57:14 -07:00
2006-10-02 07:57:14 -07:00
2005-10-29 19:30:42 +01:00
2005-05-04 07:33:13 -07:00
2006-10-02 07:57:14 -07:00
2006-10-02 07:57:14 -07:00
2006-03-28 09:16:08 -08:00
2006-06-28 14:59:05 -07:00
2005-04-16 15:20:36 -07:00
2006-10-02 07:57:14 -07:00
2005-04-16 15:20:36 -07:00
2006-10-04 07:55:13 -07:00
2005-04-16 15:20:36 -07:00
2006-10-02 07:57:14 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-12 09:09:00 -08:00
2006-09-29 09:18:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-02 07:57:14 -07:00
2006-10-04 03:38:54 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-02 07:57:14 -07:00
2006-10-02 07:57:14 -07:00
2006-10-02 07:57:14 -07:00