mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
drm/amd/display: remove set but not used variable 'bp' in bios_parser2.c
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c: In function bios_get_board_layout_info:
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c:1826:22: warning: variable bp set but not used [-Wunused-but-set-variable]
It is introduced by commit 1eeedbcc20
("drm/amd/display:
get board layout for edid emulation"), but never used,
so remove it.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d3b65841b3
commit
589d8d282e
1 changed files with 0 additions and 2 deletions
|
@ -1838,7 +1838,6 @@ static enum bp_result bios_get_board_layout_info(
|
|||
struct board_layout_info *board_layout_info)
|
||||
{
|
||||
unsigned int i;
|
||||
struct bios_parser *bp;
|
||||
enum bp_result record_result;
|
||||
|
||||
const unsigned int slot_index_to_vbios_id[MAX_BOARD_SLOTS] = {
|
||||
|
@ -1847,7 +1846,6 @@ static enum bp_result bios_get_board_layout_info(
|
|||
0, 0
|
||||
};
|
||||
|
||||
bp = BP_FROM_DCB(dcb);
|
||||
if (board_layout_info == NULL) {
|
||||
DC_LOG_DETECTION_EDID_PARSER("Invalid board_layout_info\n");
|
||||
return BP_RESULT_BADINPUT;
|
||||
|
|
Loading…
Add table
Reference in a new issue