Remove unused variable and condition statement 54/87654/1
authorseungha.son <seungha.son@samsung.com>
Fri, 9 Sep 2016 01:38:23 +0000 (10:38 +0900)
committerseungha.son <seungha.son@samsung.com>
Fri, 9 Sep 2016 04:43:03 +0000 (13:43 +0900)
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I9b3876259c908eae0b9df865b36e0374bf47966e

src/notification_noti.c

index 133c26d..53c5186 100755 (executable)
@@ -868,7 +868,6 @@ out:
 static bool _is_pop_up_notification(const char *caller_package_name, uid_t uid)
 {
        int err;
-       char *package_id = NULL;
        bool ret = true;
        notification_setting_h setting = NULL;
 
@@ -888,8 +887,6 @@ static bool _is_pop_up_notification(const char *caller_package_name, uid_t uid)
                NOTIFICATION_DBG("[%s] is not allowed Pop-up notification", caller_package_name);
 
 out:
-       if (package_id)
-               free(package_id);
        if (setting)
                notification_setting_free_notification(setting);