diff options
author | seungha.son <seungha.son@samsung.com> | 2016-11-29 15:35:17 +0900 |
---|---|---|
committer | seungha.son <seungha.son@samsung.com> | 2016-11-29 15:36:38 +0900 |
commit | 5eb83544e46b793f7e83bea800764bbed79ee15e (patch) | |
tree | 2605f23d7083a75a49523aa26f4d2f540125d713 | |
parent | 1bcc109d3f6a5cb693f154616dd667f9b46b7a42 (diff) | |
download | notification-5eb83544e46b793f7e83bea800764bbed79ee15e.tar.gz notification-5eb83544e46b793f7e83bea800764bbed79ee15e.tar.bz2 notification-5eb83544e46b793f7e83bea800764bbed79ee15e.zip |
Remove Null check logicsubmit/tizen_3.0/20161130.023420accepted/tizen/3.0/wearable/20161130.091156accepted/tizen/3.0/tv/20161130.091138accepted/tizen/3.0/mobile/20161130.091110accepted/tizen/3.0/ivi/20161130.091210accepted/tizen/3.0/common/20161130.133545
- Because, Null is already checked where this API is called.
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I62bede4636f531c61938042982079f83a134e021
-rwxr-xr-x | src/notification_ipc.c | 6 |
1 files changed, 0 insertions, 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); |