Now several set-functions cannot take zero for target value. However,
zero is acceptable value whether it is reasonable or not. Thus, zero
is permitted for function parameter, and functions will only reject
negative value.
Change-Id: Ic363abc239ab521577165768f1e41a61e502f4c3
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
char *res_name;
int res_type;
- if (!res || freq <= 0)
+ if (!res || freq < 0)
return -EINVAL;
res_name = res->cdata.res_name;
char *res_name;
int res_type;
- if (!res || freq <= 0)
+ if (!res || freq < 0)
return -EINVAL;
res_name = res->cdata.res_name;
char *res_name;
int res_type;
- if (!res || up_threshold <= 0)
+ if (!res || up_threshold < 0)
return -EINVAL;
res_name = res->cdata.res_name;