From patchwork Tue Dec 1 13:14:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1408816 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=0cZ05yD8; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CljJH6nXqz9sSf for ; Wed, 2 Dec 2020 00:15:06 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0A942826B0; Tue, 1 Dec 2020 14:14:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="0cZ05yD8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84C1B82663; Tue, 1 Dec 2020 14:14:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CFF2682663 for ; Tue, 1 Dec 2020 14:14:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x541.google.com with SMTP id ck29so3144320edb.8 for ; Tue, 01 Dec 2020 05:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wkTcpo/VST7IVSvgRByondTXrQirsReuinv9zTtl1Lo=; b=0cZ05yD8mqS19LeFjdcpD/WapEAvSda9JbcLngYCFHKkBcizpeIusgwau9zBSQ2O4e qWd1vvkjmAWZphCaZR6AkbbeLEVyeB4YAUB5xVSBaAFs1dBkkGocYUraF77WKTDKqwYi MOK3iDgozD48IgfpWfP1VhAU+39Uv5S/Bd3WYY+aKb3K/C3UaJvYOMLYBSUOzBF+5nAJ jcgkmfUUEc+z91W54Ddxvq+uNTSbNcn4uqH0qTGvwOYYZYjuk+JUnozFfkBWP77ydLAb +rHYrs1Zn2c96HyRd6KnrhAUcyK/TOLu/9pV+uOekYRKLJQ0/LkPyk9U7qfUWt9NftvV TcuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=wkTcpo/VST7IVSvgRByondTXrQirsReuinv9zTtl1Lo=; b=dHN+skme85w8u7B/OCfeOP1dwAYcixkfaZGOzxxMDiLxAeIUEArH4p//WQ9CmixJdI C0yXHj86d//Rg4Cw4Hs6kAYCUoZNVeWGO0zAmgWbjRNSwvXpjXTnLxETfCupuKY9xUMV l4VcgChClJgBZ8EhCMA2hmLkRTHtcKZG7T6GJf3g8uz8IKFigDCpRDrLRKv7N5HZJncO Lr8TpLKSAzgTeNU/vphxF1eI5ut0pKMj4R9s7j20lKzl5nLJRD4Ln3efdLVmqdk7eJEt SWkHy4blIJyWoEh0s+HEchquYpGmAcoPIDii7n0sJdNe9NwzxOYsHaV2mFa3z2owYibW 2Zvg== X-Gm-Message-State: AOAM533Vrwh9mityLXEoMQV/+5ghuR2ToDNNqFozXzLRPfALiPFGnOYR 95aU9fe3R7GVLmtDUDx2pabb8UYG44L/OPIe X-Google-Smtp-Source: ABdhPJz6YOweoPRVwZIWHfCYAmpohsq06VsYX8C1g/eev10mCVjOwc+T+N3q3GPvHmDYPAgtQ4Te4Q== X-Received: by 2002:aa7:c892:: with SMTP id p18mr3049075eds.64.1606828469204; Tue, 01 Dec 2020 05:14:29 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id y24sm818687edt.15.2020.12.01.05.14.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Dec 2020 05:14:28 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Daniel Schwierzeck , Heinrich Schuchardt , Simon Glass Subject: [PATCH 1/2] cmd: load: Fix code indentation Date: Tue, 1 Dec 2020 14:14:23 +0100 Message-Id: <1076c6d5bca1e026042c4c77ffaf82f2d0d6a8d6.1606828461.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Reported by smatch like: cmd/load.c:228 read_record() warn: inconsistent indenting Signed-off-by: Michal Simek --- cmd/load.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/load.c b/cmd/load.c index 9a3a16979c71..9af0414c9c48 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -228,13 +228,11 @@ static int read_record(char *buf, ulong len) *p = c; } - /* Check for the console hangup (if any different from serial) */ - if (gd->jt->getc != getchar) { - if (ctrlc()) { - return (-1); + /* Check for the console hangup (if any different from serial) */ + if (gd->jt->getc != getchar) { + if (ctrlc()) + return (-1); } - } - } /* line too long - truncate */ *p = '\0';