Commit 2ac50020 authored by Andrew F. Davis's avatar Andrew F. Davis
Browse files

GIC: Fix build error

Pointers should be comparied to NULL.

Fixes: 3fea9c8b

 ("gic: Fix types")
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
parent f60a5004
...@@ -484,7 +484,7 @@ unsigned int gicv3_get_interrupt_type(unsigned int id, ...@@ -484,7 +484,7 @@ unsigned int gicv3_get_interrupt_type(unsigned int id,
return INTR_GROUP1NS; return INTR_GROUP1NS;
if (id < MIN_SPI_ID) { if (id < MIN_SPI_ID) {
assert(gicv3_driver_data->rdistif_base_addrs != 0U); assert(gicv3_driver_data->rdistif_base_addrs != NULL);
gicr_base = gicv3_driver_data->rdistif_base_addrs[proc_num]; gicr_base = gicv3_driver_data->rdistif_base_addrs[proc_num];
igroup = gicr_get_igroupr0(gicr_base, id); igroup = gicr_get_igroupr0(gicr_base, id);
grpmodr = gicr_get_igrpmodr0(gicr_base, id); grpmodr = gicr_get_igrpmodr0(gicr_base, id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment