Revert "TS-2883: Initialize ret value to error condition"

This reverts commit 31056a5e0cef8d139b2d5d477163e29765d004a2.