From patchwork Wed Dec 2 07:45:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1409384 X-Patchwork-Delegate: monstr@monstr.eu 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=85.214.62.61; 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=V3HBvRWj; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4Cm9y96qBBz9ryj for ; Wed, 2 Dec 2020 18:46:00 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0F74D826DC; Wed, 2 Dec 2020 08:45:52 +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="V3HBvRWj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 462BD827D5; Wed, 2 Dec 2020 08:45:50 +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-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) (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 F010F82660 for ; Wed, 2 Dec 2020 08:45:46 +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-ej1-x642.google.com with SMTP id f23so2065576ejk.2 for ; Tue, 01 Dec 2020 23:45:46 -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=9dCQjiP1ZaUYZBsPFLSQFRGFii3YsOFv5z+UkpTxVN8=; b=V3HBvRWjn2FQF6VeBzttaOmfdZd17IbP031clsE17nKpVUJIEDX7Mv3/MKgm6WUnMp 6JB9kejuEQUXnmoqm+HrHCIjnDJvUQ4eHAJzHZr4kYJj1nm13Z75H72DQVfNcnqq5XPM JbMvM97UcvPUW+AQnTuzWtuaWA0r3nC+k1fMJof/YxtxQVvTroHcX26N1mYCTIJtKv+G xdug2zHCgEhI8W7q9RKCo7MDc7T4yk2I9cWN3lqlc2GldaqD8NQ9ePNB0DrDkBePlprk hIgeXBEmbN9t+m+oNdcTZA7noPI6J8+aUU8ur9d4lfYZ3m1VTBGin+8j87NqAoxurJqR 73CQ== 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=9dCQjiP1ZaUYZBsPFLSQFRGFii3YsOFv5z+UkpTxVN8=; b=jdeAdI0v9kuhJDgNh31cXyn2CtIqmM5TiI/tV2omWEWIbI6EyId/AEuWNMq+oVOLZV xprYE2Lcao2k94xrAtq2A3FYvA5Jl2uoFxGLg1rAfPTe6aygdlU4OyYjED6zAPFUUc0B sTore9wDjm9jidYqlWfYYDxDiFoPB1Cde2lNle2iFxNQT8A/LJrJsSMI+sE+RWLoPmYY tZzB0wSi1l+YXVwkodf6CBIlGphxA2ogsIkpbp32VMRS2fhPXfYQN/YvTTBjcsLY4lsA s1eLA9AAajqfyEXn8CORmamsA2fT6ftmWVVZYuN9qJpzDataA7T43Z+yO/mMGtvgVGT+ nyjg== X-Gm-Message-State: AOAM531og/4faNWBYTFn/7dZEDUBtbxdBg+w9shYlA4hNBb5D1jzQM1k vnNQj6elKWoxzlYIUP0L7Y1xkKQpSVaObVKp X-Google-Smtp-Source: ABdhPJxXga8mSwn97Gz1A2la4D0Sv4h4x11nEQAdCHkpeZJJGgxhzqb4HrGorrTjJ3NyWEYZjjLpKw== X-Received: by 2002:a17:906:31d2:: with SMTP id f18mr1082740ejf.407.1606895146365; Tue, 01 Dec 2020 23:45:46 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id x20sm541153ejv.66.2020.12.01.23.45.45 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Dec 2020 23:45:45 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Daniel Schwierzeck , Heinrich Schuchardt , Simon Glass Subject: [PATCH v3 1/2] cmd: load: Fix code indentation Date: Wed, 2 Dec 2020 08:45:43 +0100 Message-Id: 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 Reviewed-by: Simon Glass --- Changes in v3: - Remove additional dt changes Changes in v2: - One } was missing. Get it back. cmd/load.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/load.c b/cmd/load.c index 9a3a16979c71..c6a7cc465153 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -228,12 +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 */ From patchwork Wed Dec 2 07:45:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1409385 X-Patchwork-Delegate: monstr@monstr.eu 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=y0S46HUK; 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 4Cm9yB14LXz9sTL for ; Wed, 2 Dec 2020 18:46:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 97A26827E8; Wed, 2 Dec 2020 08:45:54 +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="y0S46HUK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 693DA827C1; Wed, 2 Dec 2020 08:45:51 +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 9D162826DC for ; Wed, 2 Dec 2020 08:45:48 +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 b2so2213453edy.13 for ; Tue, 01 Dec 2020 23:45:48 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=hmgiDfhEz4PMAbG5ZbL29VAuaMCFk8bZMvNRvdgZ+Z0=; b=y0S46HUK+EIy3KpmsMkh+qCtoSf+KmKqM9Q7rHQIkaTRVuTy1NSIbdH+waqf2z4KDC tCtynymiFNBVNytbLg/x1r45qCHsuCMd1wT1U0ExjGJ7njDLlxD6laL9gXxa5t1IdsmV f2gz5chzqPZC5DO6tQuPtFX/EHb8A1iuYQcjvS0U5F5/0ufqXUADRR2j3cCjNH1gom3X +YeqGpS7GRyHnTyNgJRgZtvh0Qhu1lbIk0jAvCaxEADqqh68DUfUS04rRedQ9ARVpNXt J29qY6JDaGh3H0rZuzAu7QR5giclc4QIIiDSIaZwq40z3dAPaTP7bkL+3oOTeDAB6wxV x/eA== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=hmgiDfhEz4PMAbG5ZbL29VAuaMCFk8bZMvNRvdgZ+Z0=; b=Q2bsbIptSdBzQ1pq5gGQAevWO4RFen337YmMoho89RUmG8Vb6AKvD7jFTPkmj60SJU xwHU/gO59HJJqvoHiwUAoJrKkidbUUzX6LJON5qraSVk6Ar9iV0xBwy7/YQKdCfrG5Mw NPGUeU9q03yFMgUI2pUzqILgU7foFQBPNATniHFcBfTjgy0nENTai6WEFx153Eu11gVl ttrCxY/UK1GOxnFmBdH3OsBMkyDTleLr5c0iUqcmju3OuYWLu6Z4cbqyGiQwEJcBqHxF 3yo93S03raRXeSybWcI9W+lmzVBEGz8gKL+iHKhyoEsXbudx76Nzxuth4SdEcoIJH5zT VSOA== X-Gm-Message-State: AOAM531JPtcXexo4KnfBoSLaavvdkNTJ4EBSDSx2qkZgylP5k8uy/SKX 2dtRPjqGhhTAmc1iAdyHLNZxcH6NuDraAlYm X-Google-Smtp-Source: ABdhPJxCnzQ+Bx30BjOR4McNF6vhDI0fi8WWWLryxljpFFybWw+4eIsVwj9XblItfr1IZBTMJO3vwQ== X-Received: by 2002:aa7:c3c2:: with SMTP id l2mr1351813edr.15.1606895148074; Tue, 01 Dec 2020 23:45:48 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id b7sm547248ejz.4.2020.12.01.23.45.47 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Dec 2020 23:45:47 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Lukasz Majewski Subject: [PATCH v3 2/2] common: usb_storage: Fix code indentation Date: Wed, 2 Dec 2020 08:45:44 +0100 Message-Id: <602b0bba013478789aae2f699bea28916de96717.1606895142.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: 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: common/usb_storage.c:430 us_one_transfer() warn: inconsistent indenting Signed-off-by: Michal Simek --- (no changes since v1) common/usb_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/usb_storage.c b/common/usb_storage.c index ff254419951f..7742bad1440d 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -431,8 +431,8 @@ static int us_one_transfer(struct us_data *us, int pipe, char *buf, int length) return 0; } /* if our try counter reaches 0, bail out */ - debug(" %ld, data %d\n", - us->pusb_dev->status, partial); + debug(" %ld, data %d\n", + us->pusb_dev->status, partial); if (!maxtry--) return result; }