]> git.hungrycats.org Git - linux/commit
ACPI: NFIT: core: Eliminate redundant local variable
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Jun 2026 17:57:36 +0000 (19:57 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Jun 2026 12:13:57 +0000 (14:13 +0200)
commit9995e4404ea4c3026459d13dd545b10ef8989469
treea0e77417857cbd7044cabdbde7ce0a6de9b1133d
parent38bf27511ef41bffebd157ec3eba41fc89ba59cd
ACPI: NFIT: core: Eliminate redundant local variable

Eliminate local variable acpi_desc from __acpi_nvdimm_notify() because it
is redundant (its value is only checked against NULL once and the value
assigned to it may be checked directly instead) and update the subsequent
comment to reflect the code change.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/14028918.uLZWGnKmhe@rafael.j.wysocki
drivers/acpi/nfit/core.c