Diff between 24125599797169b8aa5a9820298448b9ef8ad4a4 and 563ac6f020f656a4c38a7f2aeb33c6cd9a6a503d

Changed Files

File Additions Deletions Status
src/shared/gatt-server.c +1 -2 modified

Full Patch

diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c
index 79e01c8..dc3bb8e 100644
--- a/src/shared/gatt-server.c
+++ b/src/shared/gatt-server.c
@@ -803,8 +803,7 @@ static void write_cb(uint8_t opcode, const void *pdu,
 							write_complete_cb, op))
 		return;
 
-	if (op)
-		async_write_op_destroy(op);
+	async_write_op_destroy(op);
 
 	ecode = BT_ATT_ERROR_UNLIKELY;