diff options
Diffstat (limited to 'common/misc.c')
-rw-r--r-- | common/misc.c | 5 |
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); |