summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Maithani <himanshu.m@samsung.com>2019-05-28 14:18:27 +0530
committerHimanshu Maithani <himanshu.m@samsung.com>2019-06-17 15:07:25 +0000
commit04df0ad5f440d3b16174218ade8e7f58092dae46 (patch)
tree95434da58173a0af8d2358c6db25c1c96d402fe7
parent4afc3d948a181b0eab55436b22f72ba5d33d8efb (diff)
downloaddbus-04df0ad5f440d3b16174218ade8e7f58092dae46.tar.gz
dbus-04df0ad5f440d3b16174218ade8e7f58092dae46.tar.bz2
dbus-04df0ad5f440d3b16174218ade8e7f58092dae46.zip
remove unused DBusError in kdbus_read_message()
The function defines and initializes local DBusError. It is not used in kdbus_decode_msg() and function relies on assert for error. So, remove the DBusError variable in kdbus_decode_msg(). Change-Id: Ic726f2a161f06766b081f1a98e83ff4f3834f75b Signed-off-by: Himanshu Maithani <himanshu.m@samsung.com> Signed-off-by: Gaurav Gupta <g.gupta@samsung.com>
-rwxr-xr-xdbus/dbus-transport-kdbus.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/dbus/dbus-transport-kdbus.c b/dbus/dbus-transport-kdbus.c
index 4697972f..84e20300 100755
--- a/dbus/dbus-transport-kdbus.c
+++ b/dbus/dbus-transport-kdbus.c
@@ -3343,8 +3343,7 @@ kdbus_decode_msg (const struct kdbus_msg *msg,
char *data,
DBusTransportKdbus *kdbus_transport,
int *fds,
- int *n_fds,
- DBusError *error)
+ int *n_fds)
{
int ret_size = 0;
@@ -3396,9 +3395,6 @@ kdbus_read_message (DBusTransportKdbus *kdbus_transport,
int start;
dbus_uint64_t flags = 0;
int ret;
- DBusError error;
-
- dbus_error_init (&error);
start = _dbus_string_get_length (buffer);
@@ -3431,7 +3427,7 @@ kdbus_read_message (DBusTransportKdbus *kdbus_transport,
}
data = _dbus_string_get_data_len (buffer, start, buf_size);
- ret_size = kdbus_decode_msg (msg, data, kdbus_transport, fds, n_fds, &error);
+ ret_size = kdbus_decode_msg (msg, data, kdbus_transport, fds, n_fds);
if (ret_size == -1) /* error */
_dbus_string_set_length (buffer, start);