Skip to content

Commit

Permalink
drivers/powercom.c: drop checks for HAVE___ATTRIBUTE__NORETURN in ins…
Browse files Browse the repository at this point in the history
…tcmd() [networkupstools#2670]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Nov 19, 2024
1 parent a25e052 commit 2d9926d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/powercom.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,11 @@ static int instcmd (const char *cmdname, const char *extra)
* wall-power gets restored. The routine exits the driver anyway.
*/
shutdown_ret();
#ifndef HAVE___ATTRIBUTE__NORETURN
return STAT_INSTCMD_HANDLED;
#endif
}
if (!strcasecmp(cmdname, "shutdown.stayoff")) {
shutdown_halt();
#ifndef HAVE___ATTRIBUTE__NORETURN
return STAT_INSTCMD_HANDLED;
#endif
}

upslogx(LOG_NOTICE, "instcmd: unknown command [%s] [%s]", cmdname, extra);
Expand Down

0 comments on commit 2d9926d

Please sign in to comment.