consistently use ok==1 no ok==0 for success

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>