From: Petr Štetiar Date: Sun, 5 Jan 2020 10:48:35 +0000 (+0100) Subject: system: watchdog_set: fix misleading indentation X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d2e8bf6ef7cf0e037475a485cdf0321756dcb928;p=project%2Fprocd.git system: watchdog_set: fix misleading indentation Fixes error reported by clang version 10.0.0-+20200102091410: system.c:367:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] watchdog_timeout(timeout); ^ system.c:365:3: note: previous statement is here if (timeout <= frequency) Signed-off-by: Petr Štetiar --- diff --git a/system.c b/system.c index 0736ec9..0fb98f1 100644 --- a/system.c +++ b/system.c @@ -364,7 +364,7 @@ static int watchdog_set(struct ubus_context *ctx, struct ubus_object *obj, if (timeout <= frequency) timeout = frequency * 2; - watchdog_timeout(timeout); + watchdog_timeout(timeout); } if (tb[WDT_MAGICCLOSE])