<p>Richard Spiegel has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27929">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lib/edid.c: Avoid static analysis error for unused value<br><br>Within procedure cea_hdmi_block, the variable "b" is used as an index into<br>a buffer of EDID bytes. Each time it's used, it's incremented, but the last<br>increment is not used and is causing a static analysis error. Add a printk<br>at the end, using variable "b", to avoid the static analysis error.<br><br>BUG=b:112253891<br>TEST=Build and boot grunt.<br><br>Change-Id: Ibd0b4a21bf82fcc46a627bc75564a850b7374989<br>Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com><br>---<br>M src/lib/edid.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/27929/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/lib/edid.c b/src/lib/edid.c</span><br><span>index 7ad4136..747526e 100644</span><br><span>--- a/src/lib/edid.c</span><br><span>+++ b/src/lib/edid.c</span><br><span>@@ -817,7 +817,7 @@</span><br><span>                            * (optionally: 3D_Detail_X and reserved)</span><br><span>                             */</span><br><span>                  }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(120, 100%, 40%);">+             printk(BIOS_SPEW, "Next EDID byte %d\n", (9 +b));</span><br><span>          }</span><br><span>    }</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27929">change 27929</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27929"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ibd0b4a21bf82fcc46a627bc75564a850b7374989 </div>
<div style="display:none"> Gerrit-Change-Number: 27929 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Spiegel <richard.spiegel@silverbackltd.com> </div>