system: watchdog_set: fix misleading indentation
authorPetr Štetiar <ynezz@true.cz>
Sun, 5 Jan 2020 10:48:35 +0000 (11:48 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sun, 5 Jan 2020 10:49:29 +0000 (11:49 +0100)
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 <ynezz@true.cz>
system.c

index 0736ec9234cbf8c75e14fa62c18490f5589813a8..0fb98f1e36221f262a55712aaf81924aaa4249bb 100644 (file)
--- 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])