efi/gop: Move variable declarations into loop block
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 20 Mar 2020 02:00:20 +0000 (22:00 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 Apr 2020 18:15:06 +0000 (20:15 +0200)
commite484c594ba0e34686ad8780287961d09a3b4169b
tree836725357e5e0449d6197dd114fd333a2009c0de
parent8e0a22e2b0531870e61110d12b1d37d6b5d24eed
efi/gop: Move variable declarations into loop block

Declare the variables inside the block where they're used.

Get rid of a couple of redundant initializers.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200320020028.1936003-7-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/gop.c