mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[WATCHDOG] improve machzwd detection
On a machine with no machzwd, loading the module prints out.. machzwd: MachZ ZF-Logic Watchdog driver initializing. 0xffff machzwd: Watchdog using action = RESET - the 0xffff printk is unnecessary - 0xffff seems to be 'hardware not present' - fix CodingStyle. (This driver could use some more work here) Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Signed-off-by: Andrew Morton <akpm@osdl.org>
This commit is contained in:
parent
795b89d207
commit
11dc10195a
1 changed files with 1 additions and 2 deletions
|
@ -426,8 +426,7 @@ static int __init zf_init(void)
|
|||
printk(KERN_INFO PFX ": MachZ ZF-Logic Watchdog driver initializing.\n");
|
||||
|
||||
ret = zf_get_ZFL_version();
|
||||
printk("%#x\n", ret);
|
||||
if((!ret) || (ret != 0xffff)){
|
||||
if ((!ret) || (ret == 0xffff)) {
|
||||
printk(KERN_WARNING PFX ": no ZF-Logic found\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue