Optimize LP_ERR: inline _lp_return_value