summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Janc <szymon@janc.net.pl>2012-06-13 22:49:21 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-14 14:31:49 +0300
commit9cbfeb7de037b974f0c52779d8ba8f898ce1bfcd (patch)
tree68bf1f1fc26f8b2cf0b9dcd7378f7712cc128ec9
parent02cd2bda600efa71da6c128807e9c99ea8a1dd6b (diff)
downloadobexd-9cbfeb7de037b974f0c52779d8ba8f898ce1bfcd.tar.gz
Fix dead assignments
Values stored are never read.
-rw-r--r--client/pbap.c2
-rw-r--r--plugins/filesystem.c2
-rw-r--r--plugins/pbap.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/pbap.c b/client/pbap.c
index 4428c14..48dbac1 100644
--- a/client/pbap.c
+++ b/client/pbap.c
@@ -520,7 +520,7 @@ static DBusMessage *pull_vcard_listing(struct pbap_data *pbap,
p = fill_apparam(p, &count, MAXLISTCOUNT_TAG, MAXLISTCOUNT_LEN);
offset = GUINT16_TO_BE(offset);
- p = fill_apparam(p, &offset, LISTSTARTOFFSET_TAG, LISTSTARTOFFSET_LEN);
+ fill_apparam(p, &offset, LISTSTARTOFFSET_TAG, LISTSTARTOFFSET_LEN);
request = pending_request_new(pbap, message);
diff --git a/plugins/filesystem.c b/plugins/filesystem.c
index 677df76..e664fc5 100644
--- a/plugins/filesystem.c
+++ b/plugins/filesystem.c
@@ -604,7 +604,7 @@ ssize_t string_read(void *object, void *buf, size_t count)
len = MIN(string->len, count);
memcpy(buf, string->str, len);
- string = g_string_erase(string, 0, len);
+ g_string_erase(string, 0, len);
return len;
}
diff --git a/plugins/pbap.c b/plugins/pbap.c
index c6d7cfc..c7e792a 100644
--- a/plugins/pbap.c
+++ b/plugins/pbap.c
@@ -961,7 +961,7 @@ static ssize_t array_read(GByteArray *array, void *buf, size_t count)
len = MIN(array->len, count);
memcpy(buf, array->data, len);
- array = g_byte_array_remove_range(array, 0, len);
+ g_byte_array_remove_range(array, 0, len);
return len;
}