diff options
| author | Heinrich Schuchardt <[email protected]> | 2020-02-28 13:14:05 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2020-02-29 10:16:57 +0100 |
| commit | 98649365e59da18221850e137620d18b50ec99e5 (patch) | |
| tree | 9660334389f26a6c260aaa1a25a586886756bbee | |
| parent | badc61982adb6018a48ed8fe32087b9754cae14b (diff) | |
efi: Don't shadow 'i' in efi_config_parse_tables()
Shadowing variables is generally frowned upon.
Let's simply reuse the existing loop counter 'i' instead of shadowing it.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: [email protected]
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Tom Lendacky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
| -rw-r--r-- | drivers/firmware/efi/efi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 1e79f77d4e6c..41269a95ff85 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -554,7 +554,6 @@ int __init efi_config_parse_tables(const efi_config_table_t *config_tables, while (prsv) { struct linux_efi_memreserve *rsv; u8 *p; - int i; /* * Just map a full page: that is what we will get |