Skip to content

Commit eb27e5a

Browse files
Colin Ian Kingrafaeljw
authored andcommitted
ACPI: APEI: remove redundant assignment to variable rc
The variable rc is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 92ed301 commit eb27e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/apei/hest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ __setup("hest_disable", setup_hest_disable);
227227
void __init acpi_hest_init(void)
228228
{
229229
acpi_status status;
230-
int rc = -ENODEV;
230+
int rc;
231231
unsigned int ghes_count = 0;
232232

233233
if (hest_disable) {

0 commit comments

Comments
 (0)