Remove Null check logic 53/100753/1 accepted/tizen/3.0/common/20161130.133545 accepted/tizen/3.0/ivi/20161130.091210 accepted/tizen/3.0/mobile/20161130.091110 accepted/tizen/3.0/tv/20161130.091138 accepted/tizen/3.0/wearable/20161130.091156 submit/tizen_3.0/20161130.023420
authorseungha.son <seungha.son@samsung.com>
Tue, 29 Nov 2016 06:35:17 +0000 (15:35 +0900)
committerseungha.son <seungha.son@samsung.com>
Tue, 29 Nov 2016 06:36:38 +0000 (15:36 +0900)
- Because, Null is already checked where this API is called.

Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I62bede4636f531c61938042982079f83a134e021

src/notification_ipc.c

index 25f4b3de95d139da10140d2d1391e6c5c9789049..6c5fb5ba3b8605c1a74ce1c01835eb323d19b585 100755 (executable)
@@ -1499,9 +1499,6 @@ int notification_ipc_request_create_from_template(notification_h noti, const cha
        GVariant *reply_body;
        GVariant *noti_body;
 
-       if (!template_name)
-               return NOTIFICATION_ERROR_INVALID_PARAMETER;
-
        result = _dbus_init();
        if (result != NOTIFICATION_ERROR_NONE) {
                NOTIFICATION_ERR("Can't init dbus %d", result);
@@ -1537,9 +1534,6 @@ int notification_ipc_request_create_from_package_template(notification_h noti, c
        GVariant *reply_body;
        GVariant *noti_body;
 
-       if (pkgname == NULL || template_name == NULL)
-               return NOTIFICATION_ERROR_INVALID_PARAMETER;
-
        result = _dbus_init();
        if (result != NOTIFICATION_ERROR_NONE) {
                NOTIFICATION_ERR("Can't init dbus %d", result);