coreboot-kgpe-d16/src/mainboard/siemens/mc_apl1
Angel Pons afb60e7112 mb/siemens/mc_apl1: Simplify is_mac_adr_valid() logic
A MAC address that is neither 00:00:00:00:00:00 nor ff:ff:ff:ff:ff:ff is
considered valid. Instead of using a temporary buffer and memcmp(), use
a single loop that exits as soon as the MAC cannot possibly be invalid.

Change-Id: I2b15b510092860fbbefd150c9060da38aeb13311
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47405
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-by: Uwe Poeche <uwe.poeche@siemens.com>
2020-11-30 07:56:35 +00:00
..
variants mb/siemens/mc_apl1: Use pci_or_config16 function 2020-11-23 12:44:20 +00:00
board_info.txt siemens/mc_apl1: Provide baseboard and variant concepts 2018-04-26 06:54:45 +00:00
bootblock.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
dsdt.asl {src/mb,util/autoport}: Use macro for DSDT revision 2020-10-13 18:27:04 +00:00
Kconfig apollolake: Define MAX_CPUS at SoC scope 2020-09-09 10:35:34 +00:00
Kconfig.name mb/siemens/mc_apl6: Add new mainboard based on mc_apl3 2019-11-11 10:34:09 +00:00
mainboard.c mb/siemens/mc_apl1: Simplify is_mac_adr_valid() logic 2020-11-30 07:56:35 +00:00
Makefile.inc siemens/mc_apl1: Move board specific things to mc_apl1 variant 2018-04-27 09:23:52 +00:00
mc_apl1.fmd mb/siemens/{mc_apl1, mc_bdx1}: Remove offsets from flashmap files 2019-10-24 15:47:17 +00:00
mc_apl_vboot.fmd mb/siemens/{mc_apl1, mc_bdx1}: Remove offsets from flashmap files 2019-10-24 15:47:17 +00:00
romstage.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00