diff options
author | Helge Deller <deller@gmx.de> | 2022-02-07 18:59:31 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2022-02-08 16:44:15 +0300 |
commit | 50b10528aad568c95f772039d4b3093b4aea7439 (patch) | |
tree | 2825db49dc5fd24c2189e370d232fa62693ca5f9 /drivers/leds/leds-bd2802.c | |
parent | 200e8e3e43c4da4bd5ca83722523754ddb14ca02 (diff) | |
download | linux-50b10528aad568c95f772039d4b3093b4aea7439.tar.xz |
fbcon: Avoid 'cap' set but not used warning
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: 87ab9f6b7417 ("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
Diffstat (limited to 'drivers/leds/leds-bd2802.c')
0 files changed, 0 insertions, 0 deletions