Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[WATCHDOG] Revert "Stop looking for device as soon as one is found"

This reverts commit 3ff6eb4a2fe5757cbe7c5d57c8eb60ab0775f2f0.

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>

+1 -3
+1 -3
drivers/watchdog/w83697hf_wdt.c
··· 382 382 /* we will autodetect the W83697HF/HG watchdog */ 383 383 for (i = 0; ((!found) && (w83697hf_ioports[i] != 0)); i++) { 384 384 wdt_io = w83697hf_ioports[i]; 385 - if (!w83697hf_check_wdt()) { 385 + if (!w83697hf_check_wdt()) 386 386 found++; 387 - break; 388 - } 389 387 } 390 388 } else { 391 389 if (!w83697hf_check_wdt())