This patch fixes the following svace warning.
[Warning Info]
WID:
31612805 locked has enum type which is not isomorphic with boolean type,
however it is used as a boolean expression
Change-Id: I428750f3b667b0178b8886976a2d34e4b906f5b6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
* if state is same as existing state
*/
if (scn->locked == locked) {
- _E("'%s' scenario is already %s for '%s' resource\n",
- name, locked ? "Locked" : "Unlocked",
+ _E("'%s' scenario is already %s for '%s' resource\n", name,
+ (locked == PASS_ON) ? "Locked" : "Unlocked",
cdata->res_name);
return 0;
}