diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-03-02 21:34:22 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-03-03 21:54:39 +0000 |
commit | 3fc6ac7ccd23aabc131b3c4728fffb87d7cd344f (patch) | |
tree | fc041a5f224ab5b629a4106cd705649a557632e1 /src/soc | |
parent | dc7cc5bc6edf7dab63f61fea8f82d066a8882245 (diff) |
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 <felix-coreboot@felixheld.de>
Change-Id: I0aa3a0fed37c6cba15a668ada639f5fd0c212d2f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73387
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/cezanne/graphics.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; } |