The commit
0e039c5ce2677 ("pass: hal: Modify the definition of
pass_get/put_resource()") add the wrong code related to checking
the return value of pass_get_resource(). This patch fixes the bug
of checking the return value of pass_get_resource().
Change-Id: Ia9704ee96ddec0eecc183fad96fd8583a46b47f9
Fixes: 0e039c5ce2677 ("pass: hal: Modify the definition of pass_get/put_resource()")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
struct pass_conf_data *cdata = &g_pass.res[i].cdata;
ret = pass_get_resource(res);
- if (ret < -1) {
+ if (ret < 0) {
_E("Cannot get the pass '%s' resource (%d)\n",
cdata->res_name, ret);
continue;