From 3fc6ac7ccd23aabc131b3c4728fffb87d7cd344f Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 2 Mar 2023 21:34:22 +0100 Subject: soc/amd/cezanne/graphics: simplify map_oprom_vendev implementation Phoenix' implementation of map_oprom_vendev uses this simplified implementation, so port this back to Cezanne too. Signed-off-by: Felix Held Change-Id: I0aa3a0fed37c6cba15a668ada639f5fd0c212d2f Reviewed-on: https://review.coreboot.org/c/coreboot/+/73387 Reviewed-by: Fred Reitberger Tested-by: build bot (Jenkins) --- src/soc/amd/cezanne/graphics.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/soc') diff --git a/src/soc/amd/cezanne/graphics.c b/src/soc/amd/cezanne/graphics.c index 491ca871f0..2a0644344a 100644 --- a/src/soc/amd/cezanne/graphics.c +++ b/src/soc/amd/cezanne/graphics.c @@ -6,14 +6,11 @@ u32 map_oprom_vendev(u32 vendev) { - u32 new_vendev = vendev; - switch (vendev) { case CEZANNE_VBIOS_VID_DID: case BARCELO_VBIOS_VID_DID: - new_vendev = CEZANNE_VBIOS_VID_DID; - break; + return CEZANNE_VBIOS_VID_DID; } - return new_vendev; + return vendev; } -- cgit v1.2.3