linux/drivers/char/watchdog
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
..
acquirewdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
advantechwdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
alim1535_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
alim7101_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
at91_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
booke_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
cpu5wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
ep93xx_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
eurotechwdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
i8xx_tco.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
i8xx_tco.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i6300esb.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
ib700wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
ibmasr.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
indydog.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
iTCO_wdt.c [WATCHDOG] watchdog/iTCO_wdt: fix bug related to gcc uninit warning 2006-10-11 23:12:31 +02:00
ixp4xx_wdt.c fix file specification in comments 2006-10-03 23:01:26 +02:00
ixp2000_wdt.c fix file specification in comments 2006-10-03 23:01:26 +02:00
Kconfig [WATCHDOG] w83697hf/hg WDT driver - Kconfig patch 2006-10-04 22:54:26 +02:00
machzwd.c [WATCHDOG] improve machzwd detection 2006-10-02 23:14:38 +02:00
Makefile [WATCHDOG] w83697hf WDT driver 2006-10-04 22:41:07 +02:00
mixcomwd.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
mpc8xx_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
mpc83xx_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
mpcore_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
mv64x60_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
omap_wdt.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
omap_wdt.h [PATCH] OMAP: Add Watchdog driver support 2006-09-29 09:18:07 -07:00
pcwd.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
pcwd_pci.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
pcwd_usb.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
pnx4008_wdt.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
s3c2410_wdt.c [WATCHDOG] ioremap balanced with iounmap for drivers/char/watchdog/s3c2410_wdt.c 2006-10-07 22:43:56 +02:00
sa1100_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
sbc60xxwdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
sbc8360.c [PATCH] SBC8360: module_param() permission fixes 2006-09-01 11:39:08 -07:00
sbc_epx_c3.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
sc520_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
sc1200wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
scx200_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
shwdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
smsc37b787_wdt.c [WATCHDOG] Winbond SMsC37B787 watchdog fixes 2006-10-04 22:36:42 +02:00
softdog.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
w83627hf_wdt.c [WATCHDOG] w836?7hf_wdt spinlock fixes. 2006-10-04 22:41:48 +02:00
w83697hf_wdt.c [WATCHDOG] w83697hf/hg WDT driver - autodetect patch 2006-10-04 22:46:35 +02:00
w83877f_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
w83977f_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
wafer5823wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
wd501p.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
wdrtas.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
wdt285.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
wdt977.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
wdt_pci.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00