Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: efifb: Fix set but not used warning for screen_pitch

screen_pitch was asssigned a value which was never used.
Drop it to fix the warning

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Peter Jones <pjones@redhat.com>
Cc: linux-fbdev@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20201206190247.1861316-12-sam@ravnborg.org

+1 -2
+1 -2
drivers/video/fbdev/efifb.c
··· 139 139 140 140 static void efifb_show_boot_graphics(struct fb_info *info) 141 141 { 142 - u32 bmp_width, bmp_height, bmp_pitch, screen_pitch, dst_x, y, src_y; 142 + u32 bmp_width, bmp_height, bmp_pitch, dst_x, y, src_y; 143 143 struct screen_info *si = &screen_info; 144 144 struct bmp_file_header *file_header; 145 145 struct bmp_dib_header *dib_header; ··· 193 193 bmp_width = dib_header->width; 194 194 bmp_height = abs(dib_header->height); 195 195 bmp_pitch = round_up(3 * bmp_width, 4); 196 - screen_pitch = si->lfb_linelength; 197 196 198 197 if ((file_header->bitmap_offset + bmp_pitch * bmp_height) > 199 198 bgrt_image_size)