From 5eb83544e46b793f7e83bea800764bbed79ee15e Mon Sep 17 00:00:00 2001 From: "seungha.son" Date: Tue, 29 Nov 2016 15:35:17 +0900 Subject: Remove Null check logic - Because, Null is already checked where this API is called. Signed-off-by: seungha.son Change-Id: I62bede4636f531c61938042982079f83a134e021 --- src/notification_ipc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/notification_ipc.c b/src/notification_ipc.c index 25f4b3d..6c5fb5b 100755 --- a/src/notification_ipc.c +++ b/src/notification_ipc.c @@ -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); -- cgit v1.2.3