From patchwork Tue Jun 13 06:17:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 104342 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp255218qgd; Mon, 12 Jun 2017 23:18:44 -0700 (PDT) X-Received: by 10.80.145.118 with SMTP id f51mr33830844eda.170.1497334724647; Mon, 12 Jun 2017 23:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497334724; cv=none; d=google.com; s=arc-20160816; b=wHiVNlThjn3CXwnwOqhMG04hQ9vXv6/D79CNeR20vJfxtQfDJXdRIpdyJBl74fP1+q m4QVQgoujb6VxcdJTsZRZfuJFHwDd4Nl1Py3S56QsG8ZkWOzsWfWOy12bBKqRMa58/DH fHy5TBYGp+yi+qXCBoVXktWJCwK/dCsVXacZWbcGMXjckA3Wg1cClW5F8VM3PTipYLpJ S8zHYnVu5vTUKU5vveDB+RMI7KsZWWlQXkSeHAnd/ZoIWwg7maKdHZMfgj+mSaJ1+OLI ARlSr2GjJ3aoTYRaCJ7+53SH6OCZOODD7ZAj3mY7eya/Tzg+nHgJHx7vYw1C+RmMIYZc F7VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=NIk7f/XlqUd5+rVVqyoHcIF/aoD5wAQeUa4bJ38tlE4=; b=CzIbxKzYjL6/qHyPNkLSzQhckJ/Hs3tZ5I6c8DItR3V12NtUX8pqH8JScLatihDM6y Wpdf6zFeGWg6MEPip8bgcDf0RKkB/WYBgjSgLlXVs+0kYFYxx2jRaXECsLx4GMG7t1mz U3VNWuARHekIPqXWuN+uQskxwyxl5JJf02wwV8PL/G5arOi+yHQZ5nU4dJ5lvrI23TOL 9Ds4XDMSPF1nftThTKp3JOjGcPmCcBdgbqrFrX+UzLcUuduI23dOsB1rgMe2CXY4jW50 PyalR6622VVLn4pjIjE3JQwj6l0iH6CxmvENrVkqmoUsxGfQCwEPmEt7XtFEsrlK+RtX dYmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id d40si10265522eda.73.2017.06.12.23.18.44; Mon, 12 Jun 2017 23:18:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 0B430C21D7C; Tue, 13 Jun 2017 06:18:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F0CDAC21C8D; Tue, 13 Jun 2017 06:18:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4E20CC21C8D; Tue, 13 Jun 2017 06:18:38 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id 3735AC21C4F for ; Tue, 13 Jun 2017 06:18:36 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id v5D6HaI5016222; Tue, 13 Jun 2017 15:17:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v5D6HaI5016222 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1497334657; bh=Rjb6+mMo3LguoGRnzPA6672FANG9rLUiZb3hOF+88Xc=; h=From:To:Cc:Subject:Date:From; b=lPSJLc37fCPGZO7yQOxN95NOa/s+TpHGSqevSsnuiupLOgFxLuM/vEq+nbLl0UXHa mREFjkIvc/PmZ7+hv2TfYL2HEAvViZZ7pxNSSF8A1kvrb7yX3Skdxc4eQxT8KO+4rU aM/kR+LDSwn2FtrWqT5l6PK40529EoMG5RWAMO/pRNLtJuOY9XxLLlPUG1xelst2MU NpU05hnmC/k36EFzG+5VHvgW4K76bcjb2VavjjCaisIPLJXObO/h1tad4LvdXpjiJ0 wZdNQ3ykRl6f8Zi90RruTqJPXhQELLud/EAuPUK8PaX4slth1LzeRJMlpa9nqYaS36 o3SS2GTsVroQQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Tue, 13 Jun 2017 15:17:28 +0900 Message-Id: <1497334648-18683-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: =?utf-8?q?Eddy_Petri=C8=99or?= , Joe Hershberger , John Otken , Stefan Roese Subject: [U-Boot] [PATCH] treewide: remove unneeded semicolons X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- arch/powerpc/cpu/ppc4xx/speed.c | 2 +- board/amcc/bamboo/bamboo.c | 2 +- board/amcc/luan/luan.c | 2 +- board/freescale/s32v234evb/clock.c | 2 +- board/ti/beagle/beagle.c | 6 +++--- board/tqc/tqm5200/cmd_stk52xx.c | 2 +- drivers/ddr/marvell/axp/ddr3_dqs.c | 2 +- drivers/mtd/dataflash.c | 12 ++++++------ drivers/net/fsl_mcdmafec.c | 2 +- drivers/net/mpc512x_fec.c | 2 +- drivers/net/ne2000_base.c | 2 +- fs/yaffs2/yaffs_uboot_glue.c | 2 +- include/linux/compat.h | 2 +- tools/img2srec.c | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/powerpc/cpu/ppc4xx/speed.c b/arch/powerpc/cpu/ppc4xx/speed.c index 3e1a7016d949..49a8295bb363 100644 --- a/arch/powerpc/cpu/ppc4xx/speed.c +++ b/arch/powerpc/cpu/ppc4xx/speed.c @@ -709,7 +709,7 @@ unsigned long determine_pci_clock_per(void) pci_period = PERIOD_66_66MHZ; break; default: - pci_period = PERIOD_33_33MHZ;; + pci_period = PERIOD_33_33MHZ; break; } diff --git a/board/amcc/bamboo/bamboo.c b/board/amcc/bamboo/bamboo.c index 6a50b393f462..9f642071cc5d 100644 --- a/board/amcc/bamboo/bamboo.c +++ b/board/amcc/bamboo/bamboo.c @@ -1880,7 +1880,7 @@ void configure_ppc440ep_pins(void) if (ppc440ep_core_selection[PACKET_REJ_FUNC_EN] == CORE_SELECTED) { mfsdr(SDR0_MFR, sdr0_mfr); - sdr0_mfr = (sdr0_mfr & ~SDR0_MFR_PKT_REJ_MASK) | SDR0_MFR_PKT_REJ_EN;; + sdr0_mfr = (sdr0_mfr & ~SDR0_MFR_PKT_REJ_MASK) | SDR0_MFR_PKT_REJ_EN; mtsdr(SDR0_MFR, sdr0_mfr); } diff --git a/board/amcc/luan/luan.c b/board/amcc/luan/luan.c index 774671db4321..f98231a8da6c 100644 --- a/board/amcc/luan/luan.c +++ b/board/amcc/luan/luan.c @@ -161,7 +161,7 @@ static void l2cache_enable(void) /* see p258 7.4.1 Enabling L2 Cache */ mtdcr( L2_CACHE_CMD, 0x80000000 ); /* issue HCLEAR command via L2_CMD */ - while (!(mfdcr( L2_CACHE_STAT ) & 0x80000000 )) ;; /* poll L2_SR for completion */ + while (!(mfdcr( L2_CACHE_STAT ) & 0x80000000 )) ; /* poll L2_SR for completion */ mtdcr( L2_CACHE_CMD, 0x10000000 ); /* clear cache errors L2_CMD[CCP] */ diff --git a/board/freescale/s32v234evb/clock.c b/board/freescale/s32v234evb/clock.c index d218c21419b1..e8996e094f92 100644 --- a/board/freescale/s32v234evb/clock.c +++ b/board/freescale/s32v234evb/clock.c @@ -45,7 +45,7 @@ static int select_pll_source_clk(enum pll_type pll, u32 refclk_freq) pll_idx = 1; break; case DDR_PLL: - pll_idx = 2;; + pll_idx = 2; break; default: pll_idx = pll; diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index 00d127e21b3a..887b577b6adf 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -443,13 +443,13 @@ int misc_init_r(void) printf("Recognized BeagleBoardToys WiFi board\n"); MUX_BBTOYS_WIFI() setenv("buddy", "bbtoys-wifi"); - break;; + break; case BBTOYS_VGA: printf("Recognized BeagleBoardToys VGA board\n"); - break;; + break; case BBTOYS_LCD: printf("Recognized BeagleBoardToys LCD board\n"); - break;; + break; case BCT_BRETTL3: printf("Recognized bct electronic GmbH brettl3 board\n"); break; diff --git a/board/tqc/tqm5200/cmd_stk52xx.c b/board/tqc/tqm5200/cmd_stk52xx.c index dc22ee402480..a3916ed9571d 100644 --- a/board/tqc/tqm5200/cmd_stk52xx.c +++ b/board/tqc/tqm5200/cmd_stk52xx.c @@ -142,7 +142,7 @@ void amplifier_init(void) static void i2s_init(void) { unsigned long i; - struct mpc5xxx_psc *psc = (struct mpc5xxx_psc*)MPC5XXX_PSC2;; + struct mpc5xxx_psc *psc = (struct mpc5xxx_psc*)MPC5XXX_PSC2; struct mpc5xxx_gpio *gpio = (struct mpc5xxx_gpio*)MPC5XXX_GPIO; gpio->port_config |= 0x00000070; /* PSC2 ports as Codec with MCLK */ diff --git a/drivers/ddr/marvell/axp/ddr3_dqs.c b/drivers/ddr/marvell/axp/ddr3_dqs.c index 71a986d54f18..46443364d13b 100644 --- a/drivers/ddr/marvell/axp/ddr3_dqs.c +++ b/drivers/ddr/marvell/axp/ddr3_dqs.c @@ -1268,7 +1268,7 @@ int ddr3_set_dqs_centralization_results(MV_DRAM_INFO *dram_info, u32 cs, max_pup = (ecc + (1 - ecc) * dram_info->num_of_std_pups); - DEBUG_DQS_RESULTS_S("\n############ LOG LEVEL 2(Windows margins) ############\n");; + DEBUG_DQS_RESULTS_S("\n############ LOG LEVEL 2(Windows margins) ############\n"); if (is_tx) { DEBUG_DQS_RESULTS_C("DDR3 - DQS TX - Set Dqs Centralization Results - CS: ", diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c index 3fb6ed6df7cd..2d2c318adfb3 100644 --- a/drivers/mtd/dataflash.c +++ b/drivers/mtd/dataflash.c @@ -49,7 +49,7 @@ int AT91F_DataflashInit (void) dataflash_info[i].Desc.DataFlash_state = IDLE; dataflash_info[i].logical_address = cs[i].addr; dataflash_info[i].id = dfcode; - found[i] += dfcode;; + found[i] += dfcode; break; case AT45DB081: @@ -61,7 +61,7 @@ int AT91F_DataflashInit (void) dataflash_info[i].Desc.DataFlash_state = IDLE; dataflash_info[i].logical_address = cs[i].addr; dataflash_info[i].id = dfcode; - found[i] += dfcode;; + found[i] += dfcode; break; case AT45DB161: @@ -73,7 +73,7 @@ int AT91F_DataflashInit (void) dataflash_info[i].Desc.DataFlash_state = IDLE; dataflash_info[i].logical_address = cs[i].addr; dataflash_info[i].id = dfcode; - found[i] += dfcode;; + found[i] += dfcode; break; case AT45DB321: @@ -85,7 +85,7 @@ int AT91F_DataflashInit (void) dataflash_info[i].Desc.DataFlash_state = IDLE; dataflash_info[i].logical_address = cs[i].addr; dataflash_info[i].id = dfcode; - found[i] += dfcode;; + found[i] += dfcode; break; case AT45DB642: @@ -97,7 +97,7 @@ int AT91F_DataflashInit (void) dataflash_info[i].Desc.DataFlash_state = IDLE; dataflash_info[i].logical_address = cs[i].addr; dataflash_info[i].id = dfcode; - found[i] += dfcode;; + found[i] += dfcode; break; case AT45DB128: @@ -109,7 +109,7 @@ int AT91F_DataflashInit (void) dataflash_info[i].Desc.DataFlash_state = IDLE; dataflash_info[i].logical_address = cs[i].addr; dataflash_info[i].id = dfcode; - found[i] += dfcode;; + found[i] += dfcode; break; default: diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c index 15a3ce03ae34..628b420add89 100644 --- a/drivers/net/fsl_mcdmafec.c +++ b/drivers/net/fsl_mcdmafec.c @@ -475,7 +475,7 @@ static void fec_halt(struct eth_device *dev) /* Disable DMA tasks */ MCD_killDma(info->txTask); - MCD_killDma(info->rxTask);; + MCD_killDma(info->rxTask); /* Disable the Ethernet Controller */ fecp->ecr &= ~FEC_ECR_ETHER_EN; diff --git a/drivers/net/mpc512x_fec.c b/drivers/net/mpc512x_fec.c index b3746fbb9a95..a18b95942562 100644 --- a/drivers/net/mpc512x_fec.c +++ b/drivers/net/mpc512x_fec.c @@ -559,7 +559,7 @@ static int mpc512x_fec_recv (struct eth_device *dev) /* Graceful stop complete */ if (in_be32(&fec->eth->x_cntrl) & 0x00000001) { mpc512x_fec_halt (dev); - clrbits_be32(&fec->eth->x_cntrl, 0x00000001);; + clrbits_be32(&fec->eth->x_cntrl, 0x00000001); mpc512x_fec_init (dev, NULL); } } diff --git a/drivers/net/ne2000_base.c b/drivers/net/ne2000_base.c index 67bf140a37ad..377d87f04bb6 100644 --- a/drivers/net/ne2000_base.c +++ b/drivers/net/ne2000_base.c @@ -495,7 +495,7 @@ dp83902a_recv(u8 *data, int len) printf(" %02x", tmp); if (0 == (++dx % 16)) printf("\n "); #endif - *data++ = tmp;; + *data++ = tmp; mlen--; } } diff --git a/fs/yaffs2/yaffs_uboot_glue.c b/fs/yaffs2/yaffs_uboot_glue.c index 25aa6d15647f..f6630817d28a 100644 --- a/fs/yaffs2/yaffs_uboot_glue.c +++ b/fs/yaffs2/yaffs_uboot_glue.c @@ -320,7 +320,7 @@ void read_a_file(char *fn) i++; if (i > 32) { printf("\n"); - i = 0;; + i = 0; } } printf("\n"); diff --git a/include/linux/compat.h b/include/linux/compat.h index 03f9bef0dae8..2336b56cf5c1 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -109,7 +109,7 @@ static inline void kmem_cache_destroy(struct kmem_cache *cachep) #define WARN_ON(condition) ({ \ int __ret_warn_on = !!(condition); \ if (unlikely(__ret_warn_on)) \ - printf("WARNING in %s line %d\n", __FILE__, __LINE__);; \ + printf("WARNING in %s line %d\n", __FILE__, __LINE__); \ unlikely(__ret_warn_on); \ }) diff --git a/tools/img2srec.c b/tools/img2srec.c index ec7696402398..75efd76e0e3f 100644 --- a/tools/img2srec.c +++ b/tools/img2srec.c @@ -112,7 +112,7 @@ static char* ExtractDecimal (uint32_t* value, char* getPtr) static void ExtractNumber (uint32_t* value, char* getPtr) { - bool neg = false;; + bool neg = false; while (*getPtr == ' ') getPtr++; if (*getPtr == '-') {