From 2a0a02f98f742ff921ac3a9a8ccbf7fe47690509 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Thu, 26 Mar 2020 16:47:55 +1100 Subject: drivers/net/r8168: Fix extraneous space in "ethernet_mac " Unfortunately this was noticed only after commit 0e1380683f merged, credit to Sam McNally for spotting it. Previously the legacy path replaced the space with a null byte and so the expected string here is precisely "ethernet_mac" and not "ethernet_mac ". BUG=b:152157720 BRANCH=none TEST=none Change-Id: I603fad4efd6d6c539137dd714329bcea1877abdd Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/coreboot/+/39856 Reviewed-by: Sam McNally Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/drivers/net/r8168.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/net') diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c index eaf33f2978..a3e1e1b049 100644 --- a/src/drivers/net/r8168.c +++ b/src/drivers/net/r8168.c @@ -170,7 +170,7 @@ static void fetch_mac_string_vpd(struct drivers_net_config *config, u8 *macstrbu return; } - if (fetch_mac_vpd_key(macstrbuf, "ethernet_mac ") != CB_SUCCESS) + if (fetch_mac_vpd_key(macstrbuf, "ethernet_mac") != CB_SUCCESS) printk(BIOS_ERR, "r8168: mac address not found in VPD," " using default 00:e0:4c:00:c0:b0\n"); } -- cgit v1.2.3