Skip to content

Commit 133530a

Browse files
tk-wfischerWim Van Sebroeck
authored andcommitted
watchdog: it87_wdt: Remove redundant max_units setting
Commit 893dc8b ("watchdog: it87: Drop support for resetting watchdog though CIR and Game port") removed the try_gameport variable, and left max_units setting redundant. To clean up the code, this patch removes this redundant setting. Signed-off-by: Werner Fischer <devlists@wefi.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20231213094525.11849-2-devlists@wefi.net Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent fed7d05 commit 133530a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/watchdog/it87_wdt.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,6 @@ static int __init it87_wdt_init(void)
274274
case IT8712_ID:
275275
max_units = (chip_rev < 8) ? 255 : 65535;
276276
break;
277-
case IT8716_ID:
278-
case IT8726_ID:
279-
max_units = 65535;
280-
break;
281277
case IT8607_ID:
282278
case IT8613_ID:
283279
case IT8620_ID:
@@ -287,9 +283,11 @@ static int __init it87_wdt_init(void)
287283
case IT8655_ID:
288284
case IT8665_ID:
289285
case IT8686_ID:
286+
case IT8716_ID:
290287
case IT8718_ID:
291288
case IT8720_ID:
292289
case IT8721_ID:
290+
case IT8726_ID:
293291
case IT8728_ID:
294292
case IT8772_ID:
295293
case IT8783_ID:

0 commit comments

Comments
 (0)