Skip to content
Commit 3523167d authored by Helge Deller's avatar Helge Deller Committed by Greg Kroah-Hartman
Browse files

fbcon: Avoid 'cap' set but not used warning



[ Upstream commit 50b10528 ]

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: 87ab9f6b ("Revert "fbcon: Disable accelerated scrolling")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/YgFB4xqI+As196FR@p100


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ef2cb1fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment