Fix logical error for checking layout type 02/147302/2
authors414kim <s414.kim@samsung.com>
Mon, 4 Sep 2017 02:07:21 +0000 (11:07 +0900)
committers414kim <s414.kim@samsung.com>
Tue, 5 Sep 2017 01:38:58 +0000 (10:38 +0900)
Change-Id: Icb721fa00c0fd9a70b2005e292eaa9992de72ae3
Signed-off-by: s414kim <s414.kim@samsung.com>
tools/apps/secure-erase/src/ui.c

index 5a45275..29e1e83 100644 (file)
@@ -54,11 +54,9 @@ static notification_h add_notification(notification_type_e type, const char *tit
                }
        }
 
-       if (layout >= 0) {
-               ret = notification_set_layout(handle, NOTIFICATION_LY_ONGOING_PROGRESS);
-               if (ret != NOTIFICATION_ERROR_NONE) {
-                       return NULL;
-               }
+       ret = notification_set_layout(handle, layout);
+       if (ret != NOTIFICATION_ERROR_NONE) {
+               return NULL;
        }
 
        return handle;