Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1103122imu; Fri, 21 Dec 2018 12:38:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN7KrE+Kp6TIV6hRCZU5WO+s/Fk724xt6lsTMmMymFlLSiGHgpJCeNuuEEY0eT36ynDySfIG X-Received: by 2002:a17:902:28e6:: with SMTP id f93mr3935136plb.239.1545424721366; Fri, 21 Dec 2018 12:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545424721; cv=none; d=google.com; s=arc-20160816; b=M2sOwsTN97xi9OAWoeydmH41GZC7FnFQbTQ092Tt7k/eHHMXb0oFwCwbY/1PpNqSyO Y/HOLHdXfzPLlPIo4OuYJ/xgn/H/dX4ZgPM8sBSjNAGzwz4ZHqoyuxdCXfVAQlno2EZx CloZLTQuf3VuxDzqLY/DnElvdSdKSYcbqRzMqzkO3rLrGNL3g8ahr58O1JZFntZfhj4n CELcoCAPDBMijY/teHGqkM7+F0K1zdy6qMzgXT5hvfVNv+3HaGroQAicNuJ1ZvN7+DCq kx0aYrc3L1a5C13I4C9Akops6gzAeHQEQvZckpkl3UgxLvhKgNo4tuS75KMOE1Yg6pAk 6vAw== 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=CuMrdE6L+E9XkYnrlkf/Lh4/cR99TwEWqmQbNDXWMYR4F7QAA9HkNOfTzoD8UbC07f H+1bV+8ihWM3wbM5UQ/nrGz0F0cxHI2lqApLNUE0qRj/c5h0vuc4g74ceXNE5rlK4a98 ksbnGxoBGGyofM6Vfx9dp0Cnw7hOozPMvvO35bzmkUeyu+Iiro6x+ysH++4KvqsG1W3t dCvYp/ChH/Hng8dYnwttnL5JhEcwrHOW2R6ua8Hidrfksyo5OaKLXTxnXYmRaJYy3t8H 7DhNFmlGD4rLkcodNIm03Qf080FZ+9SxIq1PY+I5ECTuImWmJxYEHMuVl/MkYLopWI/X 2XvA== 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 26si22537240pgu.190.2018.12.21.12.38.26; Fri, 21 Dec 2018 12:38:41 -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 S2390526AbeLUM7l (ORCPT + 99 others); Fri, 21 Dec 2018 07:59:41 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:48279 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2388307AbeLUM7I (ORCPT ); Fri, 21 Dec 2018 07:59:08 -0500 X-UUID: 986b6651124c403faaec04d74b1cf92d-20181221 X-UUID: 986b6651124c403faaec04d74b1cf92d-20181221 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1874102934; Fri, 21 Dec 2018 20:59:02 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 21 Dec 2018 20:59:02 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 21 Dec 2018 20:59:02 +0800 From: qii wang To: CC: , , , , , , , , Subject: [PATCH 3/6] i2c: mediatek: remove completion_done() Date: Fri, 21 Dec 2018 20:58:28 +0800 Message-ID: <1545397111-24183-4-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1545397111-24183-1-git-send-email-qii.wang@mediatek.com> References: <1545397111-24183-1-git-send-email-qii.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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