tbm_bufmgr: clean up internal functions 71/96871/2
authorYoungJun Cho <yj44.cho@samsung.com>
Thu, 10 Nov 2016 10:27:21 +0000 (19:27 +0900)
committerYoungJun Cho <yj44.cho@samsung.com>
Fri, 11 Nov 2016 06:11:00 +0000 (15:11 +0900)
commit1ca6869baface17b4ffc26fd9749303f8a02bfb8
treefcc54aa3009b65d4444d5e52c8d932d110f6a1a3
parentcbe14dfd5cb1697c4af418a483e3267bc40ee8d3
tbm_bufmgr: clean up internal functions

This patch cleans up internal functions.
- Renames tbm_flag_to_str() as _tbm_flag_to_str() with static.
- Moves last_chk_bo_cnt into _tbm_util_check_bo_cnt.
- Uses LIST_FOR_EACH_ENTRY() if it is enough.
- Uses switch/case for readability in (_)tbm_bo_(un)lock().

Change-Id: Ia41fb6c793e2668574810d2b70b4ee12cb3b34ba
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
src/tbm_bufmgr.c