From 8b61564c4db28976bf9cd2ca4ee89bbffc03e5ab Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Tue, 2 Apr 2013 11:07:44 -0400 Subject: [PATCH] attrib: Fix coding style in read_char_helper() --- attrib/gatt.c | 5 ++--- 1 file 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; -- 2.47.3