[PATCH] ddr: altera: n5x: Ensure correct size of result for correct type casting