fixed inconvenient comparison

Signed-off-by: Emiliano Firmino <emiliano.firmino@gmail.com>
add coding flag

Signed-off-by: Emiliano Firmino <emiliano.firmino@gmail.com>