Reduce the cyclomatic complexity 25/189025/4 accepted/tizen/unified/20180914.073134 submit/tizen/20180913.053639
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 13 Sep 2018 00:23:55 +0000 (09:23 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 13 Sep 2018 04:40:13 +0000 (13:40 +0900)
commitd54db1eed167780129faa35ab878a03ce6622e7a
treeb500fc2a9aa40015a4fc51ea03bf3f094d700fd6
parentdfbc84ad1015e5e7503b5fcd5cdb0414685c4bb8
Reduce the cyclomatic complexity

The profile check logic is redundent, because the event callback
will not be invoked in those profiles. And replace some functions to
the mapping table.

Change-Id: I8c347ec66ffac6c4c749bebce54eb6d36a57145b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-common.c
src/bluetooth-device.c