mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
intel_infoframe: fix assertion off by 1
this makes my compiler very unhappy Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
43fda53199
commit
c6f42f4cca
@ -270,7 +270,7 @@ static Register get_dip_data_reg(Transcoder transcoder)
|
|||||||
static Register get_hdmi_port(int hdmi_port_index)
|
static Register get_hdmi_port(int hdmi_port_index)
|
||||||
{
|
{
|
||||||
if (gen == 4) {
|
if (gen == 4) {
|
||||||
assert(hdmi_port_index <= 2);
|
assert(hdmi_port_index < 2);
|
||||||
return gen4_hdmi_ports[hdmi_port_index];
|
return gen4_hdmi_ports[hdmi_port_index];
|
||||||
} else {
|
} else {
|
||||||
return pch_hdmi_ports[hdmi_port_index];
|
return pch_hdmi_ports[hdmi_port_index];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user