[coreboot-gerrit] Change in ...coreboot[master]: src: Remove unused variables

Angel Pons (Code Review) gerrit at coreboot.org
Sun Dec 2 22:51:56 CET 2018


Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29917 )

Change subject: src: Remove unused variables
......................................................................


Patch Set 15:

(6 comments)

I feel there are some variables that could be removed completely instead of putting assignments to make them seem used.

https://review.coreboot.org/#/c/29917/15/src/cpu/amd/family_10h-family_15h/init_cpus.c 
File src/cpu/amd/family_10h-family_15h/init_cpus.c:

https://review.coreboot.org/#/c/29917/15/src/cpu/amd/family_10h-family_15h/init_cpus.c@1062 
PS15, Line 1062: !!
not needed


https://review.coreboot.org/#/c/29917/15/src/northbridge/intel/pineview/early_init.c 
File src/northbridge/intel/pineview/early_init.c:

https://review.coreboot.org/#/c/29917/15/src/northbridge/intel/pineview/early_init.c@123 
PS15, Line 123: 	u32 reg32;
is it me or is reg32 not needed at all?


https://review.coreboot.org/#/c/29917/15/src/northbridge/intel/x4x/early_init.c 
File src/northbridge/intel/x4x/early_init.c:

https://review.coreboot.org/#/c/29917/15/src/northbridge/intel/x4x/early_init.c@226 
PS15, Line 226: reg16 = RCBA16(0x1a8);
              : 	reg16 &= ~0x3;
              : 	RCBA16(0x1a8) = reg16;
What do we need reg16 for?


https://review.coreboot.org/#/c/29917/15/src/soc/intel/fsp_baytrail/romstage/romstage.c 
File src/soc/intel/fsp_baytrail/romstage/romstage.c:

https://review.coreboot.org/#/c/29917/15/src/soc/intel/fsp_baytrail/romstage/romstage.c@253 
PS15, Line 253: cbmem_was_initted
Do we need this variable? I would call cbmem_recovery inside here instead.


https://review.coreboot.org/#/c/29917/15/src/soc/intel/fsp_broadwell_de/romstage/romstage.c 
File src/soc/intel/fsp_broadwell_de/romstage/romstage.c:

https://review.coreboot.org/#/c/29917/15/src/soc/intel/fsp_broadwell_de/romstage/romstage.c@119 
PS15, Line 119: cbmem_was_initted
Same


https://review.coreboot.org/#/c/29917/15/src/southbridge/intel/fsp_rangeley/romstage.c 
File src/southbridge/intel/fsp_rangeley/romstage.c:

https://review.coreboot.org/#/c/29917/15/src/southbridge/intel/fsp_rangeley/romstage.c@122 
PS15, Line 122: cbmem_was_initted
Same



-- 
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: 15
Gerrit-Owner: HAOUAS Elyes <ehaouas at noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus at gmail.com>
Gerrit-Reviewer: Damien Zammit <damien at zamaudio.com>
Gerrit-Reviewer: David Guckian <david.guckian at intel.com>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas at noos.fr>
Gerrit-Reviewer: Huang Jin <huang.jin at intel.com>
Gerrit-Reviewer: Julius Werner <jwerner at chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth at google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi at google.com>
Gerrit-Reviewer: Patrick Rudolph <siro at das-labor.org>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki at gmail.com>
Gerrit-Reviewer: York Yang <york.yang at intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-Comment-Date: Sun, 02 Dec 2018 21:51:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181202/cc85e9c6/attachment.html>


More information about the coreboot-gerrit mailing list