diff options
author | Eugeniu Rosca <roscaeugeniu@gmail.com> | 2018-08-14 03:43:04 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-08-24 20:19:53 +0300 |
commit | 2e2067b815b0fc96f357abc8cd54eedd8148c44d (patch) | |
tree | 0ad42f4ec7c2b6bff885095dd899fd5c13b098f1 /common/avb_verify.c | |
parent | ecc6f6bea6a29e43f4c559aeb642e0597cf702b2 (diff) | |
download | u-boot-2e2067b815b0fc96f357abc8cd54eedd8148c44d.tar.xz |
common: avb_verify: Fix invalid 'for' loop condition
Fix below compiler [1] warning:
common/avb_verify.c: In function ‘avb_find_dm_args’:
common/avb_verify.c:179:30: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for (i = 0; i < AVB_MAX_ARGS, args[i]; ++i) {
[1] aarch64-linux-gnu-gcc (Linaro GCC 7.2-2017.11)
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org>
Diffstat (limited to 'common/avb_verify.c')
-rw-r--r-- | common/avb_verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/avb_verify.c b/common/avb_verify.c index 82ddebcfc2..52b91a825a 100644 --- a/common/avb_verify.c +++ b/common/avb_verify.c @@ -176,7 +176,7 @@ static int avb_find_dm_args(char **args, char *str) if (!str) return -1; - for (i = 0; i < AVB_MAX_ARGS, args[i]; ++i) { + for (i = 0; i < AVB_MAX_ARGS && args[i]; ++i) { if (strstr(args[i], str)) return i; } |