From patchwork Sat May 23 16:38:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1296721 X-Patchwork-Delegate: joe.hershberger@gmail.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=H1yoe/KV; 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 49TpxB1YKYz9sPK for ; Sun, 24 May 2020 02:39:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BFDD28172F; Sat, 23 May 2020 18:39:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="H1yoe/KV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EB2AD813A6; Sat, 23 May 2020 18:39:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) (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 4AEDE813A6 for ; Sat, 23 May 2020 18:39:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@gmail.com Received: by mail-ed1-x543.google.com with SMTP id k19so11727990edv.9 for ; Sat, 23 May 2020 09:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=edavD9wQCJjBE7IhudDcqcgSjNhV0lIxn/Am082lahc=; b=H1yoe/KVAiBZPCKohwIODtc5laesUUkXkPmiEqRTsM0TWT/v8R8ZeVympIWAcke2vh sjICm6+4KyVksnjhkcDJiJcSPC/lde0zNkYjZzqyMFcgQq1J7Yl/h1JlZlhttFYkYRb6 FpucXXEvVbNF0h5m1/4jeVY5tsMQcBjaQDghTN1j5f8kztzpfSAxuo8+Pl+66vlSRi2/ Oen0i+h42deMwg47QmhmBI+NviKyOhVW/3xv6hnBsfUcGQap0yHTJgFIOToMeJGohW/h zJ5JUiN0pEwCchc9tHsSncJx//v+uaI+z6CbxbDDCGwcw5pHfbV0HTi+PD6mwP/MzWHj hOyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=edavD9wQCJjBE7IhudDcqcgSjNhV0lIxn/Am082lahc=; b=HQ36ou8ssauDsifqHl1YZwExK5kaPSyB7vOgtj9BK14GKf/f+rj6Nt1gIHoXb3+0gu QCw2VPCOk756AVdXnqRzQRzp+bR9DDwATCXFOtHwsHpVcDS0XXTsS76i0K0+xGsM52QV 2duiw8cEaxnyc/ttcNmzAwoD+wkqKAOPeIGNGb3Z7KcXnedJPDH7ycbIiLXZJbDgKupu fGgkm+KiwWYroop13SskUW3V/LamAq91jFhI4eWpAHXyZfSH3hiPtCb9q7KhFkaSjAsS br0gG2QVmQfW1/8WGs6PJhcEPvp4JiC8JHCHd6+6p1vMfhB2TxIzRmOpLYhGuDTLVyEF sakw== X-Gm-Message-State: AOAM533ZZmeGX56DHurFn2s8Lp+31wzgWHvSXSqg24ydBTaoK9iVMA8T mouDBEjXeIvNPfVozMd7old2yto3 X-Google-Smtp-Source: ABdhPJy4SigWdF1mlwaTe2/uFXnNn74/oYji2dmZmGMRJ/R1NaE4XUjZ6OB/cQZ8lGIzmqaVgelzRA== X-Received: by 2002:a50:88c6:: with SMTP id d64mr7885474edd.324.1590251945612; Sat, 23 May 2020 09:39:05 -0700 (PDT) Received: from desktop.lan (ip-86-49-35-8.net.upcbroadband.cz. [86.49.35.8]) by smtp.gmail.com with ESMTPSA id p25sm10456174eds.76.2020.05.23.09.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 09:39:04 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Cc: joe.hershberger@ni.com, Marek Vasut Subject: [PATCH 05/30] net: eepro100: Fix braces Date: Sat, 23 May 2020 18:38:12 +0200 Message-Id: <20200523163837.407592-5-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200523163837.407592-1-marek.vasut+renesas@gmail.com> References: <20200523163837.407592-1-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 at phobos.denx.de X-Virus-Status: Clean This is automated cleanup via checkpatch, no functional change. ./scripts/checkpatch.pl --show-types -f drivers/net/eepro100.c ./scripts/checkpatch.pl --types BRACES -f --fix --fix-inplace drivers/net/eepro100.c Signed-off-by: Marek Vasut Reviewed-By: Ramon Fried = TOUT_LOOP) { + if (i >= TOUT_LOOP) return 0; - } } return 1; @@ -383,9 +382,9 @@ int eepro100_initialize(bd_t * bis) while (1) { /* Find PCI device */ - if ((devno = pci_find_devices(supported, idx++)) < 0) { + devno = pci_find_devices(supported, idx++); + if (devno < 0) break; - } pci_read_config_dword(devno, PCI_BASE_ADDRESS_0, &iobase); iobase &= ~0xf; @@ -639,9 +638,8 @@ static int eepro100_recv(struct eth_device *dev) for (;;) { status = le16_to_cpu(rx_ring[rx_next].status); - if (!(status & RFD_STATUS_C)) { + if (!(status & RFD_STATUS_C)) break; - } /* Valid frame status. */ if ((status & RFD_STATUS_OK)) { @@ -668,7 +666,6 @@ static int eepro100_recv(struct eth_device *dev) } if (stat & SCB_STATUS_RNR) { - printf("%s: Receiver is not ready, restart it !\n", dev->name); /* Reinitialize Rx ring. */