<p>Richard Spiegel has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27886">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lib/bootmem.c:Remove unused setting of variable "begin"<br><br>The variable "begin" is extracted from the structure, but 4 lines below<br>it's overwritten with "end - size". This causes a static build scan error<br>that should be fixed. Remove the initial assignment of variable "begin".<br><br>BUG=b:112253891<br>TEST=Build and boot grunt.<br><br>Change-Id: I0a265747e61289f045c5cac09e40478bd31e16fc<br>Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com><br>---<br>M src/lib/bootmem.c<br>1 file changed, 0 insertions(+), 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/86/27886/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/lib/bootmem.c b/src/lib/bootmem.c</span><br><span>index 66d4592..38fdb1b 100644</span><br><span>--- a/src/lib/bootmem.c</span><br><span>+++ b/src/lib/bootmem.c</span><br><span>@@ -278,7 +278,6 @@</span><br><span>                return NULL;</span><br><span> </span><br><span>     /* region now points to the highest usable region for the given size. */</span><br><span style="color: hsl(0, 100%, 40%);">-        begin = range_entry_base(region);</span><br><span>    end = range_entry_end(region);</span><br><span>       if (end > max_addr)</span><br><span>               end = max_addr;</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27886">change 27886</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/27886"/><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: I0a265747e61289f045c5cac09e40478bd31e16fc </div>
<div style="display:none"> Gerrit-Change-Number: 27886 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Spiegel <richard.spiegel@silverbackltd.com> </div>