Fix warning

Fix "warning: comparison of unsigned expression < 0 is always false"
Some variable value number are defined as unsigned number. When they are
compared with zero, the zero would cast to an unsigned number. And it
would be always false. Fix these by defining them as signed number. And
some cleanup.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
7 files changed