Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4096851imu; Mon, 10 Dec 2018 13:05:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vaej+7l2ODdak3zTMcSeMPf9MruNYTKjFiH8rnaH1vGMtUDKGiEhcN3sM0hGFQxzER2n6h X-Received: by 2002:a63:f515:: with SMTP id w21mr12162277pgh.220.1544475924776; Mon, 10 Dec 2018 13:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544475924; cv=none; d=google.com; s=arc-20160816; b=YiJjvFwIeQ2KRBVHayp9A4gYtMei4+kabWWHoL7rulx9i6FZgjMTKS3ehAp/m8hxg+ xNnAq12+5/lXgsqJAhM/qnxU+pmMP5nZDUfCLhr2TJGuX3foKduugCA8UKjwj4j0qzjb OOjzPbqX23b+S33ZIVlGMFiTex0HiR2TSLTk1nW78xaUkAcJ+Y5/rx5W2R1wfXOy4jmM 0ahBW11bClMqCMKZWUH66ib5xFwGccpF8PgzCiEewyogmjws3bEjCwC1Ji/mizfD/xuC PjjBUNJ73p9EO4eGCr0fU3FSLGA3NIk4uNCOm0Z+XHy+OxgboVIu/b2PXY0F4lZIDvNT yPug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=cH+2XzZmwXDEA2U7XfYWqVepObrp6cC1v9Q0QaThnBc=; b=afc/O/b4zK2VbUrEkbAyVtVJLiPWwcH1DO6Z8TSbZUwUNTR9xpXBXsITLKi/g0eyfn /Gz2mT0jFuOHI78sRDbtaJDNUeMpWBHrCj5UNcm3Oez978ZC5SPy4u7uPgwBOJ+dfirD E89JXUt7EzaKhWAuxKBjxZ0hyJv6RV0Ivxz9bK2wtK8toK/n5VNaB73ozTlq/bgF5SYr 6m1G7b2kJUL76ty0rdPr9QAvYf4O0jilT95Rq0B25v49OEYzrPUyNsKHn2ezfDBk1Pdl Wwhn1t9y/3to89iDMDGT1Nw4rQ31rnYU4vq8vtHZuwxf3vZCY74l0OBFiSzWBkF3VDzm I67Q== 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 2si10371602pgy.35.2018.12.10.13.05.09; Mon, 10 Dec 2018 13:05:24 -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 S1729948AbeLJVDV (ORCPT + 99 others); Mon, 10 Dec 2018 16:03:21 -0500 Received: from sauhun.de ([88.99.104.3]:36696 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727143AbeLJVDR (ORCPT ); Mon, 10 Dec 2018 16:03:17 -0500 Received: from localhost (p54B335CF.dip0.t-ipconnect.de [84.179.53.207]) by pokefinder.org (Postfix) with ESMTPSA id 35AF44C3C6A; Mon, 10 Dec 2018 22:03:15 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Hans de Goede , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Wolfram Sang , Ard Biesheuvel , linux-kernel@vger.kernel.org Subject: [RFC/RFT 03/10] i2c: synquacer: remove unused is_suspended flag Date: Mon, 10 Dec 2018 22:03:01 +0100 Message-Id: <20181210210310.12677-4-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181210210310.12677-1-wsa+renesas@sang-engineering.com> References: <20181210210310.12677-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This flag was defined and checked but never set a value. Remove it. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-synquacer.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index 2184b7c3580e..d18b0941b71a 100644 --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -144,8 +144,6 @@ struct synquacer_i2c { u32 timeout_ms; enum i2c_state state; struct i2c_adapter adapter; - - bool is_suspended; }; static inline int is_lastmsg(struct synquacer_i2c *i2c) @@ -316,9 +314,6 @@ static int synquacer_i2c_doxfer(struct synquacer_i2c *i2c, unsigned long timeout; int ret; - if (i2c->is_suspended) - return -EBUSY; - synquacer_i2c_hw_init(i2c); bsr = readb(i2c->base + SYNQUACER_I2C_REG_BSR); if (bsr & SYNQUACER_I2C_BSR_BB) { -- 2.11.0