Skip to contentSkip to conversation

apei: erst: remove unneeded semicolon

PATCH Applied Yang Li 2 participants 2 messages Feb 2, 2021 – Feb 5, 2021

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 apei: erst: remove unneeded semicolon

Eliminate the following coccicheck warning:
./drivers/acpi/apei/erst.c:691:2-3: Unneeded semicolon

---
 drivers/acpi/apei/erst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/apei/erst.c +1 -1
index 2e0b0fc..b959721 100644
@@ -688,7 +688,7 @@ static int __erst_read_from_storage(u64 record_id, u64 offset)
 			break;
 		if (erst_timedout(&timeout, SPIN_UNIT))
 			return -EIO;
-	};
+	}
 	rc = apei_exec_run(&ctx, ACPI_ERST_GET_COMMAND_STATUS);
 	if (rc)
 		return rc;
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw
Quoted 15 lines · Yang Li

Eliminate the following coccicheck warning:
./drivers/acpi/apei/erst.c:691:2-3: Unneeded semicolon

---
 drivers/acpi/apei/erst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/apei/erst.c +0 -0
index 2e0b0fc..b959721 100644

drivers/acpi/apei/erst.c static int __erst_read_from_storage(u64 record_id, u64 offset)

Quoted 9 lines
drivers/acpi/apei/erst.c +1 -2
@@ -688,7 +688,7 @@ static int __erst_read_from_storage(u64 record_id, u64 offset)
                        break;
                if (erst_timedout(&timeout, SPIN_UNIT))
                        return -EIO;
-       };
+       }
        rc = apei_exec_run(&ctx, ACPI_ERST_GET_COMMAND_STATUS);
        if (rc)
                return rc;
--

Applied as 5.12 material, thanks!