Fix wrong return value of model name 27/291827/1 accepted/tizen/unified/20230427.155823
authorWootak Jung <wootak.jung@samsung.com>
Sun, 23 Apr 2023 23:35:41 +0000 (08:35 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Sun, 23 Apr 2023 23:39:01 +0000 (08:39 +0900)
Change-Id: Ic607a8e0cca95a564174eb150f230fef7cd1ddf0
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
include/bluetooth-agent-profile.h

index 011ab67..17e1d63 100644 (file)
@@ -108,7 +108,7 @@ static inline tizen_model_name_t get_tizen_model_name()
        char *modelName = NULL;
 
        if (__builtin_expect(model_name != _MODEL_UNKNOWN, 1))
-               return profile;
+               return model_name;
 
        system_info_get_platform_string("http://tizen.org/system/model_name", &modelName);