From 563ac6f020f656a4c38a7f2aeb33c6cd9a6a503d Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Thu, 6 Jul 2017 20:36:36 +0530 Subject: [PATCH] shared/gatt-server: Remove unwanted pointer validation Here the memory address pointed by the variable op is always valid. --- src/shared/gatt-server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c index 79e01c8d0..dc3bb8ee9 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; -- 2.47.3