summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-09-12 07:53:12 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-12 07:53:12 +0200
commitd11999163ba62a239022d7ba98bc524730575db8 (patch)
tree3fa5bdd53229e77a9b2cac82e118cb91afe616d7 /common
parentd8af9462c9040c2e222d90a6003581abc8fb040e (diff)
parentb9014db5661d5a447f2d2d7717ad9be839d5e741 (diff)
downloadbarebox-d11999163ba62a239022d7ba98bc524730575db8.tar.gz
barebox-d11999163ba62a239022d7ba98bc524730575db8.tar.xz
Merge branch 'for-next/qemu'
Diffstat (limited to 'common')
-rw-r--r--common/misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/misc.c b/common/misc.c
index 66aba534fc..9b390dc7ba 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -150,7 +150,10 @@ EXPORT_SYMBOL(barebox_set_model);
const char *barebox_get_model(void)
{
- return model;
+ if (model)
+ return model;
+ else
+ return "none";
}
EXPORT_SYMBOL(barebox_get_model);