Fix checking return code

Change-Id: I8263a2f466310778400668a50fe04c10bd31df70
1 file changed