Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29917 )
Change subject: src: Remove unused variables
......................................................................
Patch Set 34:
(3 comments)
https://review.coreboot.org/#/c/29917/31/src/cpu/amd/quadcore/quadcore.c
File src/cpu/amd/quadcore/quadcore.c:
https://review.coreboot.org/#/c/29917/31/src/cpu/amd/quadcore/quadcore.c@101
PS31, Line 101: get_boot_apic_id(nodeid
Adding the printk needs to be split to separate change.
I agree, this is not removing unused variables, but rather making them be used, so it's out of the scope of this patch.
https://review.coreboot.org/#/c/29917/34/src/soc/intel/fsp_baytrail/romstage...
File src/soc/intel/fsp_baytrail/romstage/romstage.c:
https://review.coreboot.org/#/c/29917/34/src/soc/intel/fsp_baytrail/romstage...
PS34, Line 247: cbmem_was_initted = !cbmem_recovery(prev_sleep_state == ACPI_S3);
: if (!cbmem_was_initted)
: printk(BIOS_ERR, "cbmem init failed\n");
The call to cbmem_recovery() can be put inside the if condition, eliminating the cbmem_was_initted variable completely. See the comment below
https://review.coreboot.org/#/c/29917/34/src/soc/intel/fsp_broadwell_de/roms...
File src/soc/intel/fsp_broadwell_de/romstage/romstage.c:
https://review.coreboot.org/#/c/29917/34/src/soc/intel/fsp_broadwell_de/roms...
PS34, Line 114:
: if (cbmem_recovery(0))
: printk(BIOS_ERR, "cbmem init failed\n");
This is nice.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/29917
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibdfbf1031130ff861c4313d1271d6ccb68bf8837
Gerrit-Change-Number: 29917
Gerrit-PatchSet: 34
Gerrit-Owner: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Damien Zammit
damien@zamaudio.com
Gerrit-Reviewer: David Guckian
david.guckian@intel.com
Gerrit-Reviewer: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-Reviewer: Huang Jin
huang.jin@intel.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: York Yang
yyang024@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-CC: Stefan Reinauer
stefan.reinauer@coreboot.org
Gerrit-Comment-Date: Sun, 07 Apr 2019 10:21:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kyösti Mälkki
kyosti.malkki@gmail.com
Comment-In-Reply-To: Patrick Rudolph
siro@das-labor.org
Comment-In-Reply-To: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-MessageType: comment