[M120 Migration] Fix build warning
The following patch fixes a compilation warning [1] that
occurs during tv build.
[1] "warning: comparison of integers of different
signs: 'int' and 'unsigned int'"
The upper limit of unsigned int and int are different, so in
extreme cases where value of a variable falls in between the
upper limit of int and unsigned int, leads to an infinite loop.
Reference: https://review.tizen.org/gerrit/293395
Change-Id: I7921ffb6a949b7f9c522889e35c9cd9d48268b26
Signed-off-by: Manjeet <manjeet.1@partner.samsung.com>