drivers: intc: plic: simplify the handling of the `irq_count` array

Store the compile-time computed length of the `irq_count` into
a variable so that we have less to do in runtime.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
1 file changed