Instead of returning NULL when board is not set return "none". Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- common/misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox