Browse Source

GIC: Fix build error

Pointers should be comparied to NULL.

Fixes: 3fea9c8b8e ("gic: Fix types")
Signed-off-by: Andrew F. Davis <afd@ti.com>
pull/1552/head
Andrew F. Davis 6 years ago
parent
commit
2ac5002046
  1. 2
      drivers/arm/gic/v3/gicv3_main.c

2
drivers/arm/gic/v3/gicv3_main.c

@ -484,7 +484,7 @@ unsigned int gicv3_get_interrupt_type(unsigned int id,
return INTR_GROUP1NS;
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];
igroup = gicr_get_igroupr0(gicr_base, id);
grpmodr = gicr_get_igrpmodr0(gicr_base, id);

Loading…
Cancel
Save