summaryrefslogtreecommitdiffstats
path: root/common/hush.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-04-04 11:05:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-04 12:46:28 +0200
commitf292406f752407a9a66027a3dd0c867b3c2620c9 (patch)
tree5996e37353ca1c12fc5872f8f3fcefbb5ed923f2 /common/hush.c
parent7d00626bef077bd47350543c58e616ec4037efec (diff)
downloadbarebox-f292406f752407a9a66027a3dd0c867b3c2620c9.tar.gz
barebox-f292406f752407a9a66027a3dd0c867b3c2620c9.tar.xz
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 <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230404090542.1820785-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/hush.c')
-rw-r--r--common/hush.c2
1 files changed, 1 insertions, 1 deletions
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;
}