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

Patrick Rudolph (Code Review) gerrit at coreboot.org
Mon Dec 3 06:42:52 CET 2018


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

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


Patch Set 15:

(1 comment)

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?
It's a 16bit register. Using 8bit access here could brick things, as there are many read,write-to-clear registers. Unlikely here, but I'd always use full register width access.



-- 
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: Mon, 03 Dec 2018 05:42:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus at gmail.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181203/df3c8d1d/attachment.html>


More information about the coreboot-gerrit mailing list