John Zhao has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32903 )
Change subject: soc/intel/apollolake: Fix value stored to gnvs is never read
......................................................................
Patch Set 3:
(2 comments)
https://review.coreboot.org/#/c/32903/2//COMMIT_MSG
Commit Message:
https://review.coreboot.org/#/c/32903/2//COMMIT_MSG@7
PS2, Line 7: soc/intel/apollolake: Fix issue found by Clang Static Analyzer
Please describe the issue here. […]
Updated. Please let me know whether it is proper description.
https://review.coreboot.org/#/c/32903/2/src/soc/intel/apollolake/chip.c
File src/soc/intel/apollolake/chip.c:
https://review.coreboot.org/#/c/32903/2/src/soc/intel/apollolake/chip.c@a421
PS2, Line 421:
I think what furquan is saying is that we still need to do the cbmem_add, even if we don't assign it […]
Common code southbridge_inject_dsdt already takes care of gnvs. gnvs=cbmem_find(CBMEM_ID_ACPI_GNVS). If gnvs is null,
then gnvs = cbmem_add(CBMEM_ID_ACPI_GNVS, sizeof(*gnvs)) is executed. We can remove the redundant code here.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/32903
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie9421af4a556d1d88183aa938ee2a124a10ab727
Gerrit-Change-Number: 32903
Gerrit-PatchSet: 3
Gerrit-Owner: John Zhao
john.zhao@intel.com
Gerrit-Reviewer: Balaji Manigandan
balaji.manigandan@intel.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: John Zhao
john.zhao@intel.com
Gerrit-Reviewer: Lance Zhao
lance.zhao@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Jacob Garber
jgarber1@ualberta.ca
Gerrit-CC: Lijian Zhao
lijian.zhao@intel.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Tue, 21 May 2019 16:55:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel
paulepanter@users.sourceforge.net
Comment-In-Reply-To: Martin Roth
martinroth@google.com
Comment-In-Reply-To: Furquan Shaikh
furquan@google.com
Gerrit-MessageType: comment