]> Git Repo - linux.git/commit
ACPI: pfr_telemetry: remove redundant error check on ret
authorColin Ian King <[email protected]>
Mon, 14 Oct 2024 13:05:22 +0000 (14:05 +0100)
committerRafael J. Wysocki <[email protected]>
Thu, 24 Oct 2024 15:42:12 +0000 (17:42 +0200)
commitf8dc4394fc51ceb6c18a68c38fb41d9bc5f1ec63
tree20d923b866ec20ef463076cadfa44a649fbed9c9
parent42f7652d3eb527d03665b09edac47f85fb600924
ACPI: pfr_telemetry: remove redundant error check on ret

The variable ret is initialized to zero and a littler later in
the PFRT_LOG_IOC_GET_INFO case of a switch statement is being checked
for negative error value. Since ret has not been re-assigned since
the initialization ret can never be less than zero so the check is
redundant and can be removed. Remove it.

Signed-off-by: Colin Ian King <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/acpi/pfr_telemetry.c
This page took 0.060653 seconds and 4 git commands to generate.