intel_infoframe: fix assertion off by 1
authorBen Widawsky <ben@bwidawsk.net>
Sun, 29 Apr 2012 03:10:09 +0000 (20:10 -0700)
committerBen Widawsky <ben@bwidawsk.net>
Sun, 29 Apr 2012 03:10:09 +0000 (20:10 -0700)
this makes my compiler very unhappy

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
tools/intel_infoframes.c

index 57d01a8..0dea903 100644 (file)
@@ -270,7 +270,7 @@ static Register get_dip_data_reg(Transcoder transcoder)
 static Register get_hdmi_port(int hdmi_port_index)
 {
        if (gen == 4) {
-               assert(hdmi_port_index <= 2);
+               assert(hdmi_port_index < 2);
                return gen4_hdmi_ports[hdmi_port_index];
        } else {
                return pch_hdmi_ports[hdmi_port_index];