Fix bugprone-posix-return warnings

Test: WITH_TIDY=1 make
Bug: 154629561
Change-Id: I27b3ffc430400b4f133890748a2124afdabb7814
1 file changed