Inline 'result' variable to avoid gcc warning about unused variable.