Skip to content

Commit

Permalink
hdat/vpd: Don't warn and don't create a dummy "model-name"
Browse files Browse the repository at this point in the history
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@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
ozbenh authored and stewartsmith committed Jun 26, 2017
1 parent 85fa292 commit 80ba63e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hdata/vpd.c
Expand Up @@ -529,9 +529,6 @@ static void dt_add_model_name(void)
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);
}
}

Expand Down

0 comments on commit 80ba63e

Please sign in to comment.