From f292406f752407a9a66027a3dd0c867b3c2620c9 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Tue, 4 Apr 2023 11:05:42 +0200 Subject: hush: pacify clang -Wparentheses-equality warning Code is fine, but clang's -Wparentheses-equality warns when using double parentheses in conditionals that don't do assignment. This aligns with our code style as well, so change it to silence the warning. No functional change. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20230404090542.1820785-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- common/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/hush.c b/common/hush.c index 5138a1a45a..608c0e4937 100644 --- a/common/hush.c +++ b/common/hush.c @@ -1837,7 +1837,7 @@ static char **make_list_in(char **inp, char *name) p3 = insert_var_value(inp[i]); p1 = p3; while (*p1) { - if ((*p1 == ' ')) { + if (*p1 == ' ') { p1++; continue; } -- cgit v1.2.1