From patchwork Tue Mar 13 12:52:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 10278565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 767BD60231 for ; Tue, 13 Mar 2018 12:53:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B1A727D0E for ; Tue, 13 Mar 2018 12:53:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DDC028329; Tue, 13 Mar 2018 12:53:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C978327D0E for ; Tue, 13 Mar 2018 12:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PCN4UKEV69EQ84FhwcczvgDbL6txdKeDzeM6+yBI2RE=; b=Asx2leAeObWPAh yNuyJn2MrQdlrqiCuNNDd7WvvPl24mS9K1N6CkeNATzCrc8N59RnCKIshwnjOdilHJ5CYAR2AlAvO W9BU1O4tggE9HZ5u/C3vFSkYxQKWWy9iOm9kPWCeYsS4ZqKgPIGUCwWt+j44vstL2KmDpn8cn1QpG oKc9nGsVGjmU3arJkeImgiNp/I1DFU6fWw1TvkWKTjOBP4E/zGuyOnEjgRSK22g4vb+f/Ma6PuBqL LKfnP0tMuDfuaX2MlBvalJUlta3oKedVFEkecOunZIBH/LuXrK3dp+e1nJgFVCOZnMtcQOJlWuOQN 2kQ1yQhuFpj39jUOhGFw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1evjQE-0005wv-VH; Tue, 13 Mar 2018 12:52:54 +0000 Received: from mga06.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1evjQB-0005uT-Eu for linux-arm-kernel@lists.infradead.org; Tue, 13 Mar 2018 12:52:53 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2018 05:52:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,464,1515484800"; d="scan'208";a="24214509" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga007.jf.intel.com with ESMTP; 13 Mar 2018 05:52:37 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1evjOt-0007rb-WC; Tue, 13 Mar 2018 20:51:32 +0800 Date: Tue, 13 Mar 2018 20:52:26 +0800 From: kbuild test robot To: Pierre-Yves MORDRET Subject: [PATCH] i2c: i2c-stm32f7: fix semicolon.cocci warnings Message-ID: <20180313125226.GA26161@lkp-sb05> References: <1520852023-27083-4-git-send-email-pierre-yves.mordret@st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1520852023-27083-4-git-send-email-pierre-yves.mordret@st.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180313_055251_678066_4C6E2E13 X-CRM114-Status: GOOD ( 19.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Torgue , Wolfram Sang , linux-kernel@vger.kernel.org, Pierre-Yves MORDRET , linux-i2c@vger.kernel.org, Maxime Coquelin , linux-arm-kernel@lists.infradead.org, kbuild-all@01.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fengguang Wu drivers/i2c/busses/i2c-stm32f7.c:995:2-3: Unneeded semicolon drivers/i2c/busses/i2c-stm32f7.c:944:2-3: Unneeded semicolon drivers/i2c/busses/i2c-stm32f7.c:875:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 226a69fb1a70 ("i2c: i2c-stm32f7: Add initial SMBus protocols support") CC: Pierre-Yves MORDRET Signed-off-by: Fengguang Wu --- i2c-stm32f7.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -872,7 +872,7 @@ static int stm32f7_i2c_smbus_xfer_msg(st default: dev_err(dev, "Unsupported smbus protocol %d\n", f7_msg->size); return -EOPNOTSUPP; - }; + } f7_msg->buf = f7_msg->smbus_buf; @@ -941,7 +941,7 @@ static void stm32f7_i2c_smbus_rep_start( f7_msg->count = 1; cr2 |= STM32F7_I2C_CR2_RELOAD; break; - }; + } f7_msg->buf = f7_msg->smbus_buf; f7_msg->stop = true; @@ -992,7 +992,7 @@ static int stm32f7_i2c_smbus_check_pec(s default: dev_err(i2c_dev->dev, "Unsupported smbus protocol for PEC\n"); return -EINVAL; - }; + } if (internal_pec != received_pec) { dev_err(i2c_dev->dev, "Bad PEC 0x%02x vs. 0x%02x\n",