efi/gop: Get mode information outside the loop
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 20 Mar 2020 02:00:17 +0000 (22:00 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 Apr 2020 18:15:06 +0000 (20:15 +0200)
commit6327e6d0e4a52688be621190381eea6a146bb777
tree01a042864da80716fcbeecbac1de315a3cdc4d77
parent8cd207973c37175bf44727e28aa9c74fcf18de5e
efi/gop: Get mode information outside the loop

Move extraction of the mode information parameters outside the loop to
find the gop, and eliminate some redundant variables.

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