mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
vboot: use standard memcmp, memcpy, memset
Originally, we didn't trust the firmware to provide these functions from a standard library. Now, with coreboot, we do. BUG=chromium:611535 BRANCH=none TEST=make runtests; emerge-kevin coreboot depthcharge Change-Id: I4e624c40085f2b665275a38624340b2f6aabcf11 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/399120 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
08d56aa7a7
commit
664096bd1a
@@ -220,7 +220,7 @@ GptEntry *GptFindNthEntry(GptData *gpt, const Guid *guid, unsigned int n)
|
||||
int i;
|
||||
|
||||
for (i = 0, e = entries; i < header->number_of_entries; i++, e++) {
|
||||
if (!Memcmp(&e->type, guid, sizeof(*guid))) {
|
||||
if (!memcmp(&e->type, guid, sizeof(*guid))) {
|
||||
if (n == 0)
|
||||
return e;
|
||||
n--;
|
||||
|
||||
Reference in New Issue
Block a user