fpga: altera: Clean up altera_validate function