Remove warning, should ==

warning: possibly useless use of == in void context