watchdog/hpwdt: Remove redundant test.
authorJerry Hoemann <jerry.hoemann@hpe.com>
Wed, 13 Dec 2023 21:53:39 +0000 (14:53 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 17 Dec 2023 15:14:21 +0000 (16:14 +0100)
commit2b276d52d83d1e48af53646b4c03c171b2d7d4f4
treeacbe1272d7f98ea975f52aa80927703aac29651b
parentdced0b3e51dd2af3730efe14dd86b5e3173f0a65
watchdog/hpwdt: Remove redundant test.

ProLiants of vintage to have an iLO 5, no longer send watchdog NMI
as an IO CHECK.  They are presented to hpwdt_pretimeout as NMI_UNKNOWN.
The preceding if statement rejects if !mynmi irrespective of value
of pretimeout making this if statement redundant.

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231213215340.495734-3-jerry.hoemann@hpe.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/hpwdt.c