unused variable removed

unused variable ret in mlp_encode_frame is removed