remove duplicated if (!ok)

Signed-off-by: Hiroshi Miura <miurahr@linux.com>