remove unnecessary check

Signed-off-by: Ondrej Koch <o.koch@zerusnet.com>