[coreboot-gerrit] New patch to review for coreboot: 0b57cca baytrail: minor style

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Wed May 7 20:21:09 CEST 2014


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5692

-gerrit

commit 0b57ccaf13daa4b3c8d8b6a511da398bfe094abe
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Wed May 7 20:20:10 2014 +0200

    baytrail: minor style
    
    use IS_ENABLED() over #if brackets
    
    Change-Id: I101f99971c0f7b5311ef19cc9832713ab0696935
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 src/soc/intel/baytrail/romstage/raminit.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/soc/intel/baytrail/romstage/raminit.c b/src/soc/intel/baytrail/romstage/raminit.c
index dc840b0..352b86f 100644
--- a/src/soc/intel/baytrail/romstage/raminit.c
+++ b/src/soc/intel/baytrail/romstage/raminit.c
@@ -118,9 +118,7 @@ void raminit(struct mrc_params *mp, int prev_sleep_state)
 	mp->version = MRC_PARAMS_VER;
 	mp->console_out = &send_to_console;
 	mp->prev_sleep_state = prev_sleep_state;
-#if CONFIG_MRC_RMT
-	mp->rmt_enabled = 1;
-#endif
+	mp->rmt_enabled = IS_ENABLED(CONFIG_MRC_RMT);
 	if (recovery_mode_enabled()) {
 		printk(BIOS_DEBUG, "Recovery mode: not using MRC cache.\n");
 	} else if (!mrc_cache_get_current(&cache)) {



More information about the coreboot-gerrit mailing list