From 59ba9844eb6bcc4d2c35852e730c0a63d58a83ca Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Wed, 16 Mar 2011 16:30:14 -0400 Subject: [PATCH] Remove unnecessary assignment from attrib_db_update() attrib_db_update() uses g_try_realloc() only to expand/shrink space for the variable "data" field. Therefore existing fields (like handle) are guaranteed to remain unchanged. --- src/attrib-server.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/attrib-server.c b/src/attrib-server.c index 98b3fa36a..e70531063 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -1249,7 +1249,6 @@ int attrib_db_update(uint16_t handle, bt_uuid_t *uuid, const uint8_t *value, return -ENOMEM; l->data = a; - a->handle = handle; if (uuid != NULL) memcpy(&a->uuid, uuid, sizeof(bt_uuid_t)); a->len = len; -- 2.47.3