[WATCHDOG] Documentation/watchdog/src/watchdog-simple.c: improve this code