Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4098787imu; Mon, 10 Dec 2018 13:07:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNFMUApuE5ioL5SHBTeCrac81UyXlA8x94GnhBSBj1yIFaVi2vNdajZYgHOqBZOnUrZmid X-Received: by 2002:a63:4044:: with SMTP id n65mr11834668pga.90.1544476036960; Mon, 10 Dec 2018 13:07:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544476036; cv=none; d=google.com; s=arc-20160816; b=y/O89CuHA2QgHrJIj7khmSsYkikErmlyyDFf4b4PBsr+x8ioB1zirKkBcy/Nfgco1W raOUYp05rs6+jB/CJ9BfOD0TtN2bZ5oNiQgM6UhlUGbCTzMr9JeM17BBK4xTN/fl944T UUiYIGtW3MHBDyzk65HxiT5NzfY6ECiAvcC4oyccX+hEpScZL6rWOByPemSSxUFFPTkR 6up5tzc8btHFMitvZVc5FPEWmfcKAlpVp9OmfCDfVCH5tLrHfuiFAMrkdB+MOUtl3IdH 0Xui8YOM4aONpZZhXw1tultqAVHkHgu9mpf675pqLzViREGtPek7Q/1QFhpjHpEOv/qo sNZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3bC2z7tUV8JkK88NZkHivaWApFVgDb5ee5X2hJ0P7qM=; b=fJlxUw7NzcOgQGVtzp6l+7X7AxcFjFEWJLI+i6sMv74sZ664CYGjO2y7wJCw8BgE5v pDyN/WqLp96F0W0JvvOBKq9qe4R7HjkHkeIaK+1K9avW5R7EqPrrtZvZdroOPezEVPr/ cw9KaKbCOGRHSN1ZFsVelN7VC8gtgOYbd7pqXTnWSS+Bka73FDVdbp04aqz+F1UtO84C UQK5ZxAaVG17Vr4NthWm4MPozDRoCF5dezgakwWYU73gtu1IV3GWxen8JFc0WagdHBQr 3IoyatocUBmTbGubTPD7+wedHdY4K2a5ky3GULlnHeJ+MAXgIW1uENiYvGTS2TDBksS6 0RJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XYJyz4tG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si10355097ply.359.2018.12.10.13.07.01; Mon, 10 Dec 2018 13:07:16 -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; dkim=pass header.i=@linaro.org header.s=google header.b=XYJyz4tG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730065AbeLJVEU (ORCPT + 99 others); Mon, 10 Dec 2018 16:04:20 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:44424 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729441AbeLJVET (ORCPT ); Mon, 10 Dec 2018 16:04:19 -0500 Received: by mail-io1-f66.google.com with SMTP id r200so9941887iod.11 for ; Mon, 10 Dec 2018 13:04:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3bC2z7tUV8JkK88NZkHivaWApFVgDb5ee5X2hJ0P7qM=; b=XYJyz4tG9uLneocwyimMtdToxIZm8iC8Wh9IfWiuTX8iFg4nhqvAeXOIjo2ClmAwrA 6Z1NpNLL/dDn9hti8LXR3L8DKzsqV+zYVcFpgQ4KEP9eq6h6zzNMeqAe5Irq2KvbSmWF mWxPCpYlj7gFccxBbv7SJjkUUaBYdfpAKVqqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3bC2z7tUV8JkK88NZkHivaWApFVgDb5ee5X2hJ0P7qM=; b=g5Qaf4bsB0OVd1BKXCpHWlAxgXKTz/5jziBgprvQukWRsLuaYv759Un94IEY97dr0i twh3KAztwJ0xvte8TgC+Ecmdqiw3iwFPMwSTEd5mTz+EqL91kgCPsFI23U6ag84Wd5bt J1Q7DxYsczYas2shTK+0Nt7Z92avPItNYRGG+X0dQJFqNxlPlHhwLe6Ohgu+g6xOxEYB iC0rx6GyEs5CaBPj+10JVFHujbzQjwBEqEWhyiXmXbf9I4UPuynnkYHZ+EAQ2tSiW51J R29QHVl5oDo3MY9RfatuzJE01sKwSKCFoLohebcs7YwhWDbX0TSbwCCJWnAdbHHzUtmq c9Xg== X-Gm-Message-State: AA+aEWa3Wm6HNrAF7Wi87Yp/koAuEaLqVjQeowRCxe3DKBHX1f7yBZ0O PmGu97UN8AjiasqUwBg3qjS46IWaYxFO26QBQXrmZw== X-Received: by 2002:a5e:cb42:: with SMTP id h2mr11757906iok.60.1544475857969; Mon, 10 Dec 2018 13:04:17 -0800 (PST) MIME-Version: 1.0 References: <20181210210310.12677-1-wsa+renesas@sang-engineering.com> <20181210210310.12677-4-wsa+renesas@sang-engineering.com> In-Reply-To: <20181210210310.12677-4-wsa+renesas@sang-engineering.com> From: Ard Biesheuvel Date: Mon, 10 Dec 2018 22:04:06 +0100 Message-ID: Subject: Re: [RFC/RFT 03/10] i2c: synquacer: remove unused is_suspended flag To: wsa+renesas@sang-engineering.com Cc: linux-i2c , Linux-Renesas , Hans de Goede , linux-pm , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Dec 2018 at 22:03, Wolfram Sang wrote: > > This flag was defined and checked but never set a value. Remove it. > > Signed-off-by: Wolfram Sang Acked-by: Ard Biesheuvel > --- > 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 >