summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/efi.h
diff options
context:
space:
mode:
authorArvind Sankar <nivedita@alum.mit.edu>2020-03-19 22:00:23 -0400
committerArd Biesheuvel <ardb@kernel.org>2020-04-23 20:15:06 +0200
commitd49fd4bbf9bb0dbee3a3eed301ffeeb75636053b (patch)
treeaa25b191ead1e59f8326ea5cab8bc94044c0f95a /arch/x86/include/asm/efi.h
parent9867fc9de6a6a7a54edb2c43540c6db226e84a14 (diff)
downloadlinux-stable-d49fd4bbf9bb0dbee3a3eed301ffeeb75636053b.tar.gz
linux-stable-d49fd4bbf9bb0dbee3a3eed301ffeeb75636053b.tar.bz2
linux-stable-d49fd4bbf9bb0dbee3a3eed301ffeeb75636053b.zip
efi/gop: Remove unreachable code from setup_pixel_info
pixel_format must be one of PIXEL_RGB_RESERVED_8BIT_PER_COLOR PIXEL_BGR_RESERVED_8BIT_PER_COLOR PIXEL_BIT_MASK since we skip PIXEL_BLT_ONLY when finding a gop. Remove the redundant code and add another check in find_gop to skip any pixel formats that we don't know about, in case a later version of the UEFI spec adds one. Reformat the code a little. Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Link: https://lore.kernel.org/r/20200320020028.1936003-10-nivedita@alum.mit.edu Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/efi.h')
0 files changed, 0 insertions, 0 deletions