watchdog: diag288_wdt: de-duplicate diag_stat_inc() calls
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 3 Feb 2023 07:39:57 +0000 (08:39 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 6 Feb 2023 14:14:09 +0000 (15:14 +0100)
commit379008519819b58a4b5d1adb177f4ce8164a54d0
treeff73f339159c888ad1d38761dfe218b30a592c5e
parent221f748ac8633083b7800d4e33a076fce22e341e
watchdog: diag288_wdt: de-duplicate diag_stat_inc() calls

Call diag_stat_inc() from __diag288() to reduce code duplication.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230203073958.1585738-5-egorenar@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/watchdog/diag288_wdt.c