Skip to content

Commit

Permalink
[WATCHDOG] Revert "Stop looking for device as soon as one is found"
Browse files Browse the repository at this point in the history
This reverts commit 3ff6eb4.

the !found check in the for loop allready made sure that only one
device was found.

Signed-Off-By: Pádraig Brady <P@draigBrady.com>
Signed-Off-By: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Jan 18, 2008
1 parent 03bbe08 commit cde10ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/watchdog/w83697hf_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,8 @@ wdt_init(void)
/* we will autodetect the W83697HF/HG watchdog */
for (i = 0; ((!found) && (w83697hf_ioports[i] != 0)); i++) {
wdt_io = w83697hf_ioports[i];
if (!w83697hf_check_wdt()) {
if (!w83697hf_check_wdt())
found++;
break;
}
}
} else {
if (!w83697hf_check_wdt())
Expand Down

0 comments on commit cde10ba

Please sign in to comment.