Removing code duplication from Caleadapter.c (#606) 92/218792/1
authorsamanway.dey@samsung.com <samanway.dey@samsung.com>
Tue, 19 Nov 2019 11:26:58 +0000 (16:56 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 28 Nov 2019 07:22:26 +0000 (16:22 +0900)
commitbf5a334178217560d061c96a4dc4e85e96eb5a0c
treebf34f0414106e7fab06aaed60d25d52073807ab8
parent1a99d46b8047455d7046e03af32334e634da0aa0
Removing code duplication from Caleadapter.c (#606)

- Checking CAResult_t returning from different APIs called in Caleadapter.c was being checked multiple times
 - This was contributing in increasing code complexity
 - Replaced each block with a single macro

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/606
(cherry-picked from 7ecd31d8fc9d132bbd4e5cccc86e8189419eb930)

Change-Id: I54e7061743bdcf12acbe2bc201086b0e833db1f9
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c