Removed the useless check

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>