summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/common/block/gpio/gpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/gpio/gpio.c b/src/soc/intel/common/block/gpio/gpio.c
index 931fb7f545..bd124775b6 100644
--- a/src/soc/intel/common/block/gpio/gpio.c
+++ b/src/soc/intel/common/block/gpio/gpio.c
@@ -73,7 +73,8 @@ static inline size_t gpio_group_index(const struct pad_community *comm,
{
size_t i;
- assert(comm->groups != NULL);
+ if (!comm->groups)
+ die("Failed to get comm->groups.");
/* find the base pad number for this pad's group */
for (i = 0; i < comm->num_groups; i++) {