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:
Ben Widawsky 2012-04-28 20:10:09 -07:00
parent 43fda53199
commit c6f42f4cca

View File

@ -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];