[PATCH v2 05/11] shared/gatt-client: Minor variable rename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use success instead of status to make it easy to read
---
 src/shared/gatt-server.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c
index ba668e3..a32aeb1 100644
--- a/src/shared/gatt-server.c
+++ b/src/shared/gatt-server.c
@@ -1172,7 +1172,7 @@ static void exec_next_prep_write(struct bt_gatt_server *server,
 {
 	struct prep_write_data *next = NULL;
 	struct gatt_db_attribute *attr;
-	bool status;
+	bool success;
 
 	if (err)
 		goto error;
@@ -1190,7 +1190,7 @@ static void exec_next_prep_write(struct bt_gatt_server *server,
 		goto error;
 	}
 
-	status = gatt_db_attribute_write(attr, next->offset,
+	success = gatt_db_attribute_write(attr, next->offset,
 						next->value, next->length,
 						BT_ATT_OP_EXEC_WRITE_REQ,
 						server->att,
@@ -1198,7 +1198,7 @@ static void exec_next_prep_write(struct bt_gatt_server *server,
 
 	prep_write_data_destroy(next);
 
-	if (status)
+	if (success)
 		return;
 
 	err = BT_ATT_ERROR_UNLIKELY;
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux