mgmt-tester: Fix build error
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 2 Jun 2022 18:52:06 +0000 (11:52 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit9a9c6ba7f195d9d78a8c2a56f35947346b6a7948
treedbbce35339d021dca89baedb1fbc6307108cde66
parent931e2bac1427f2b67fc143bcbef58775c69248ca
mgmt-tester: Fix build error

This fixes the following build error:

CC    tools/mgmt-tester.o
tools/mgmt-tester.c: In function ‘setup_command_generic’:
tools/mgmt-tester.c:7503:16: error: the comparison will always evaluate
as ‘true’ for the pointer operand in
‘(const struct setup_mgmt_cmd *)test->setup_mgmt_cmd_arr +
(sizetype)(i * 24)’ must not be NULL [-Werror=address]
 7503 |     for (; test->setup_mgmt_cmd_arr + i; ++i) {
   |        ^~~~

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/mgmt-tester.c