Change-Id: I9ee780ff0f5297922b5469cb78804df1ff38942f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
} tracker_service_e;
typedef enum {
+ TRACKER_TYPE_INVALID = -1,
TRACKER_TYPE_POWER_LOCK = 0,
TRACKER_TYPE_MAX
} tracker_type_e;
{
int ref;
- if (type < 0 || type >= TRACKER_TYPE_MAX || !trackers[type]) {
+ if (type <= TRACKER_TYPE_INVALID || type >= TRACKER_TYPE_MAX || !trackers[type]) {
_E("Try to access not existed tracker %d", type);
return TRACKER_ERROR_INVALID_PARAMETER;
}
{
int count;
- if (type < 0 || type >= TRACKER_TYPE_MAX || !trackers[type]) {
+ if (type <= TRACKER_TYPE_INVALID || type >= TRACKER_TYPE_MAX || !trackers[type]) {
_E("Try to access not existed tracker %d", type);
return TRACKER_ERROR_INVALID_PARAMETER;
}