Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5897588pxb; Mon, 14 Feb 2022 10:06:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLLbYMXWBsEJk/J04yUi1ftT5P1yI97NqwysBpjoDW2kM/q4KCOvVJ2H//vBxbQbjdCzTw X-Received: by 2002:a63:5602:: with SMTP id k2mr162463pgb.333.1644861962776; Mon, 14 Feb 2022 10:06:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644861962; cv=none; d=google.com; s=arc-20160816; b=eoY8rC0ukVsqIJ+2n2l9WEQAPADJfU5oyDzhngx0qQTKt4E+oPDBZux9Xj4TGUfL1C smHFjN0bASpkH5tQU14Qj5qF7bst3T7dfjXRmbRT/mJX21dFm80QerRK04m/JxUOQ6Ov 1QttNSoxY6YKv17drN3s0tjKuI4JtUR7ai294fENvCuIQD4x4wsP+ss64WNinqYcjmU1 9M8g8DmsSxVw2seCnMssNRhK0WK6KJRQBVLMWsqBmFZFip8DOOzE7lDxTbLs7bVjAA4M OG5TIvYV59uCc/lc77k2kfdZ/PfGNqU5FxacJfqtXiYVP9i1df9P+8mVJe6db/nATJRW cW0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hx5eDCeiXw+io0MLBSR2sJ0aIB+8Yi5pmBDS8WL4pgQ=; b=0WvuTgdtZGJOwbzUIvxLKPqxXo/NIkSlGjJ/08jlZ/gUoWVJiLTvYwGmqruqXwVAYO SGeaP380tFyZihRYOmH6SFN0E4FspIkuwONqO47uAtxIEudsg3X4bA6PkNDsKgozSNvV P5pDhW9arxnl8jzIwYaNtI7L66TQvHqprVn/eJmQ7QLYNS2ETh78it+bQRn/RChnS2TF M2tc1Wi9mTr/nLsFb9zvYR2L2T3p5CctR2CLRDGFlelSxbRl5R8fbAuS7PPDdW1677tT T+CE5dLW2ULFruZIfeon4Fk5Ln3TAjGbPluPuBA+kTD9cEVTPEQM4eqnEwX7dmCLnMkB jYUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w71si363156pgd.237.2022.02.14.10.05.46; Mon, 14 Feb 2022 10:06:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353591AbiBNMrR (ORCPT + 99 others); Mon, 14 Feb 2022 07:47:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233510AbiBNMrP (ORCPT ); Mon, 14 Feb 2022 07:47:15 -0500 Received: from out199-14.us.a.mail.aliyun.com (out199-14.us.a.mail.aliyun.com [47.90.199.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C7F563A5; Mon, 14 Feb 2022 04:47:07 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R711e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0V4SlR3g_1644842822; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V4SlR3g_1644842822) by smtp.aliyun-inc.com(127.0.0.1); Mon, 14 Feb 2022 20:47:03 +0800 From: Yang Li To: jarkko.nikula@linux.intel.com, jsd@semihalf.com Cc: andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next v2 RESEND] i2c: designware: remove unneeded semicolon Date: Mon, 14 Feb 2022 20:47:01 +0800 Message-Id: <20220214124701.105814-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eliminate the following coccicheck warnings: ./drivers/i2c/busses/i2c-designware-amdpsp.c:172:2-3: Unneeded semicolon ./drivers/i2c/busses/i2c-designware-amdpsp.c:245:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- --Changes in v2: According to Jan's suggestion Fix the same problem in check_i2c_req_sts() function. drivers/i2c/busses/i2c-designware-amdpsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-amdpsp.c b/drivers/i2c/busses/i2c-designware-amdpsp.c index 752e0024db03..9d37becbd846 100644 --- a/drivers/i2c/busses/i2c-designware-amdpsp.c +++ b/drivers/i2c/busses/i2c-designware-amdpsp.c @@ -172,7 +172,7 @@ static int check_i2c_req_sts(struct psp_i2c_req *req) case PSP_I2C_REQ_STS_INV_PARAM: default: return -EIO; - }; + } } static int psp_send_check_i2c_req(struct psp_i2c_req *req) @@ -245,7 +245,7 @@ static int psp_acquire_i2c_bus(void) if (psp_i2c_access_count) { psp_i2c_access_count++; goto cleanup; - }; + } status = psp_send_i2c_req(PSP_I2C_REQ_ACQUIRE); if (status) { -- 2.20.1.7.g153144c