diff options
author | Nandor Han <nandor.han@ge.com> | 2018-04-25 16:56:59 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-05-17 11:54:24 +0200 |
commit | 5ce9a1c84fdf6a4562a5072fcd95076e9cc333d6 (patch) | |
tree | 7fb78d0bef9653af18b074421b5fdef97428b138 /board/ge/bx50v3 | |
parent | 63f0ec57f2a2b7335cb7890e87d18f8d69173644 (diff) |
board: ge: bx50v3: unify two switch statements
Simplify process_vpd() by unifying the switch statements handling
product specific configurations.
Signed-off-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'board/ge/bx50v3')
-rw-r--r-- | board/ge/bx50v3/bx50v3.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c index 9d8d4780cf..be6a9fc470 100644 --- a/board/ge/bx50v3/bx50v3.c +++ b/board/ge/bx50v3/bx50v3.c @@ -593,23 +593,16 @@ static void process_vpd(struct vpd_cache *vpd) switch (vpd->product_id) { case VPD_PRODUCT_B450: env_set("confidx", "1"); + i210_index = 0; + fec_index = 1; break; case VPD_PRODUCT_B650: env_set("confidx", "2"); - break; - case VPD_PRODUCT_B850: - env_set("confidx", "3"); - break; - } - - switch (vpd->product_id) { - case VPD_PRODUCT_B450: - /* fall thru */ - case VPD_PRODUCT_B650: i210_index = 0; fec_index = 1; break; case VPD_PRODUCT_B850: + env_set("confidx", "3"); i210_index = 1; fec_index = 2; break; |