WSL2-Linux-Kernel/drivers/video
Helge Deller 3523167d66 fbcon: Avoid 'cap' set but not used warning
[ Upstream commit 50b10528aa ]

Fix this kernel test robot warning:

  drivers/video/fbdev/core/fbcon.c: In function 'fbcon_init':
  drivers/video/fbdev/core/fbcon.c:1028:6: warning: variable 'cap' set but not used [-Wunused-but-set-variable]

The cap variable is only used when CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION
is enabled. Drop the temporary variable and use info->flags instead.

Fixes: 87ab9f6b74 ("Revert "fbcon: Disable accelerated scrolling")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/YgFB4xqI+As196FR@p100
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-02-16 12:56:27 +01:00
..
backlight backlight: qcom-wled: Respect enabled-strings in set_brightness 2022-01-27 11:03:46 +01:00
console fbcon: Add option to enable legacy hardware acceleration 2022-02-08 18:34:06 +01:00
fbdev fbcon: Avoid 'cap' set but not used warning 2022-02-16 12:56:27 +01:00
logo
Kconfig
Makefile
display_timing.c
hdmi.c
of_display_timing.c
of_videomode.c
vgastate.c
videomode.c