RAS: Fix assert condition
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>
Fri, 7 Sep 2018 15:30:58 +0000 (16:30 +0100)
committerJeenu Viswambharan <jeenu.viswambharan@arm.com>
Fri, 7 Sep 2018 15:37:06 +0000 (16:37 +0100)
Change-Id: Ia02a2dbfd4e25547776e78bed40a91f3452553d7
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
lib/extensions/ras/std_err_record.c

index 209cb7310f560ca02d84efb08b0c43b19dbeb610..9fdfd6b60f20b15b3799d56396bced1a04d255bf 100644 (file)
@@ -56,7 +56,7 @@ int ser_probe_sysreg(unsigned int idx_start, unsigned int num_idx, int *probe_da
                ((unsigned int) read_erridr_el1()) & ERRIDR_MASK;
 
        assert(idx_start < max_idx);
-       assert(check_u32_overflow(idx_start, num_idx));
+       assert(check_u32_overflow(idx_start, num_idx) == 0);
        assert((idx_start + num_idx - 1U) < max_idx);
 
        for (i = 0; i < num_idx; i++) {