[Skiboot] [PATCH v2 08/23] hdat/vpd: Don't warn and don't create a dummy "model-name"

Michael Neuling mikey at neuling.org
Sun Jun 25 05:17:13 AEST 2017


From: Benjamin Herrenschmidt <benh at kernel.crashing.org>

If the model property doesn't contain a known model number
that we can translate into a name, assume it's already a name,
stop warning and don't create an extraneous property.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 hdata/vpd.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/hdata/vpd.c b/hdata/vpd.c
index 7f3954a081..a2c8906ca5 100644
--- a/hdata/vpd.c
+++ b/hdata/vpd.c
@@ -529,9 +529,6 @@ def_model:
 		mi = machine_info_lookup(model->prop);
 		if (mi) {
 			model_name = mi->name;
-		} else {
-			model_name = "Unknown";
-			prlog(PR_WARNING, "VPD: Model name %s not known\n", model->prop);
 		}
 	}
 
-- 
2.11.0



More information about the Skiboot mailing list