Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5945331imu; Mon, 21 Jan 2019 00:02:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Tg+w9RPsVRO5Htym80Xn4kTy5y79h0R+RPp/lccjuXYfjaabnLYSOecLeuSwWfVma0SSE X-Received: by 2002:a63:ff62:: with SMTP id s34mr27391912pgk.325.1548057762429; Mon, 21 Jan 2019 00:02:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548057762; cv=none; d=google.com; s=arc-20160816; b=oLnNlMPLMSzK1cxk40IUMssp3W4YGixMj8Ytd1BnO4x5zvhJPjv2/im0Iv+6cps4l8 9ajZvbXehwDhHtco88dvBpp4VIb+oiGMIXzagy1SdUOK6S2+vuWFXRrhhQDT3fUdfKBg CQg8TlwzRzsX3i0WipypiY3KJ3AtpUp8YuBxIgT+IE2crUTdhomlAxyN2DkIjh5qoOkz LBE17OBaD/BXFiIaBXp4YEVwODikWKMCNPAkmu03tMOPVGQuMpluUwT354Qm/bkWpTzN DrSazS60XkJwUOlK+1CtskPRyb5i4r/ncjnp14newwi2yHL4NJ98cYciMw6VXU429g7L PRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=fpYBh+jo7jqCW/v3lilJham40BHC+RM8c0Nn/DBwIPA=; b=gKgDF6U+3SAFMirtIg9rkokaX5+UAwACRTP04PFx/WI6iaUAz21aY/7RdaqbF7td5H osA/3rdoLEG/YbN9/TnywHoI/NHtc+FNV1MeHtiGD4Rh8HxPmWJELPV2W2kZo45bKU0C N+KTpmdmmq3ObN/Qd/UTNgSdmr4xyt3RdL9fOqmYYdz0wvi+IAt/QykWkuxrVrHCzxiM suaECnj+zA36Osv5+k+yVt1dOOQGzXLrZ6gS8Fod2GB2t4VsxifbOH1LCmNLf9tQP9cA JqlxfxKQ2ix2iKWoTzKMAbjC57bom/e44H4TKgG0g55+xKy66ZNHrJed5/unMwukP3sc gC6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16si11120998plo.182.2019.01.21.00.02.27; Mon, 21 Jan 2019 00:02:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729482AbfAUIAu (ORCPT + 99 others); Mon, 21 Jan 2019 03:00:50 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:27838 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729230AbfAUIAs (ORCPT ); Mon, 21 Jan 2019 03:00:48 -0500 X-UUID: 412e15dc94c34cc7b9157f141ffe1d3c-20190121 X-UUID: 412e15dc94c34cc7b9157f141ffe1d3c-20190121 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1242355900; Mon, 21 Jan 2019 16:00:42 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 21 Jan 2019 16:00:40 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 21 Jan 2019 16:00:40 +0800 From: qii wang To: CC: , , , , , , , , , , Subject: [PATCH v3 3/6] i2c: mediatek: remove completion_done() Date: Mon, 21 Jan 2019 15:59:31 +0800 Message-ID: <1548057574-8061-4-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1548057574-8061-1-git-send-email-qii.wang@mediatek.com> References: <1548057574-8061-1-git-send-email-qii.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: BD04568AAD2438B9AE4E2F2E4F11C55897C6B3871F67A3D7D6B42F2AB5D0C97A2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Completion_done() is useless when we don't use its return value, so we remove it. Signed-off-by: qii wang --- drivers/i2c/busses/i2c-mt65xx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 7396449..660de1e 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -642,8 +642,6 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs, return -ETIMEDOUT; } - completion_done(&i2c->msg_complete); - if (i2c->irq_stat & (I2C_HS_NACKERR | I2C_ACKERR)) { dev_dbg(i2c->dev, "addr: %x, transfer ACK error\n", msgs->addr); mtk_i2c_init_hw(i2c); -- 1.7.9.5