summaryrefslogtreecommitdiff
path: root/attrib/gatt.c
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2013-04-02 11:07:44 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-04-04 14:51:08 +0300
commit8b61564c4db28976bf9cd2ca4ee89bbffc03e5ab (patch)
tree7498d46552c861338c16bf19b3e47a5d20789f76 /attrib/gatt.c
parent03f2256f6a0b43c2221812a248614653ec333f0c (diff)
downloadbluez-8b61564c4db28976bf9cd2ca4ee89bbffc03e5ab.tar.gz
attrib: Fix coding style in read_char_helper()
Diffstat (limited to 'attrib/gatt.c')
-rw-r--r--attrib/gatt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/attrib/gatt.c b/attrib/gatt.c
index e4c538503..c1aa0702a 100644
--- a/attrib/gatt.c
+++ b/attrib/gatt.c
@@ -651,7 +651,6 @@ static void read_char_helper(guint8 status, const guint8 *rpdu,
goto done;
long_read->buffer = g_malloc(rlen);
-
if (long_read->buffer == NULL)
goto done;
@@ -659,9 +658,9 @@ static void read_char_helper(guint8 status, const guint8 *rpdu,
long_read->size = rlen;
plen = enc_read_blob_req(long_read->handle, rlen - 1, buf, buflen);
- id = g_attrib_send(long_read->attrib, long_read->id, buf, plen,
- read_blob_helper, long_read, read_long_destroy);
+ id = g_attrib_send(long_read->attrib, long_read->id, buf, plen,
+ read_blob_helper, long_read, read_long_destroy);
if (id != 0) {
g_atomic_int_inc(&long_read->ref);
return;