Skip to content

Commit 7281599

Browse files
rikardfalkeborncminyard
authored andcommitted
ipmi/watchdog: Constify ident
ident is not modified and can be made const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Message-Id: <20211128220154.32927-1-rikard.falkeborn@gmail.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
1 parent 993220b commit 7281599

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/char/ipmi/ipmi_watchdog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ static int ipmi_heartbeat(void)
668668
return rv;
669669
}
670670

671-
static struct watchdog_info ident = {
671+
static const struct watchdog_info ident = {
672672
.options = 0, /* WDIOF_SETTIMEOUT, */
673673
.firmware_version = 1,
674674
.identity = "IPMI"

0 commit comments

Comments
 (0)