Commit: 2cf39bd1d09c934b3a87b82ad24516c6bf5642ea
Parent: 099fced63a15f638ec6af167c9a40739b25202f2
Author: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2015-01-20 12:47:20
Tree: 03d8bb3d803427a00d76b6228a1d385cc0cc34f6

shared/gatt-db: Refactor gatt_db_attribute_get_permissions Refactoring makes code cleaner and consistent with other code like function gatt_db_attribute_get_handle(), etc. Also removes compile warnings related to unneeded checks like check for !permissions and warnings related to dead check for construction below: (!gatt_db_attribute_get_permissions(attr, &perm) those checks are useless since attr is always checked before and check for &perm is really stupid.

Diffstat

M android/gatt.c | 10 +++++- - - - -
M src/shared/gatt-db.c | 12 +++++- - - - - - -
M src/shared/gatt-db.h | 4 ++- -
M src/shared/gatt-server.c | 20 ++++- - - - - - - - - - - - - - - -

4 files changed, 16 insertions(+), 30 deletions(-)

View Full Diff | Patch