Skip to content

Commit

Permalink
ipmi/watchdog: Constify ident
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rikard Falkeborn authored and Corey Minyard committed Jan 17, 2022
1 parent 993220b commit 7281599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/ipmi/ipmi_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ static int ipmi_heartbeat(void)
return rv;
}

static struct watchdog_info ident = {
static const struct watchdog_info ident = {
.options = 0, /* WDIOF_SETTIMEOUT, */
.firmware_version = 1,
.identity = "IPMI"
Expand Down

0 comments on commit 7281599

Please sign in to comment.