Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7860231imu; Thu, 15 Nov 2018 02:42:26 -0800 (PST) X-Google-Smtp-Source: AJdET5fJ+ZWt/y4YCCWGORq75ys5TO7/PCp3r7ChXVVKaeT/ZbGEyAMfmZmIrobd0lapY2gK8L3Z X-Received: by 2002:a63:2141:: with SMTP id s1mr5354841pgm.148.1542278546557; Thu, 15 Nov 2018 02:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542278546; cv=none; d=google.com; s=arc-20160816; b=tRqcevPUI2H1+jSqnw0PjsB+Q3+ZiMJXE+XskNon25FNCJEx/75VJMNGg+N5dnMsTC NldAduKI9AJVdNN21acX2sanOFmsZdURrQ8dxktnVASoLhfLg29wBqYqdgRLVFudI1nM vr2hOL9Eo6kezO1LT3BFmRA5Cq8W2ZYqW+1CceqgaD4pYlmjt9WDomRXZ+/apEfeG8Nb Mf6xHcVoaf+nioCUtKWbQzRjGkxi1u/rvt92Rusr6nYWsyK8eF02ljxOxaab/TURLsAk WmUij29H5STpzznt1Dpbg2I1PwYP9B+AAidx6k/79YzDmDN88Crr7PanxCllfWzvOva8 +4AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=bLNU/YnH2m5BABQmE9LqptI5Yr07GyUzR1K2aK7yTsM=; b=MslcqzIsv8ve9V3YzWx4aWhvKyRFglb/u6CMjeMQmxQuCmiuA6H3QcR7nhF2LCFmUA 8NHloKdzvvtwWSOyz1TbSKAab7sfj5ISzFrOR/WEvjY/c1G2/Eu+2c8s/A0lbhXk5KKf K4r6tkYdEgdker+qCCTLcdsMRO0s0xClVw7sah5zWSJK8O7NXjdPQPKyAJy9iXTmSe4C Zr5GweMg0lpifS3F4AllpVymJvzv7wEoNyKUBElZP/snw69eHRCVlmHBM8bFtvf/EGtv lE4cwlEwrQhzV9cULd/gr0x+W2uc5YkyTOt6Ay1Gx9XTMWmli3mAV3HDcH5I7g6zNKHG X3LA== 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 141-v6si30216299pfz.210.2018.11.15.02.42.12; Thu, 15 Nov 2018 02:42:26 -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 S2387652AbeKOUsq (ORCPT + 99 others); Thu, 15 Nov 2018 15:48:46 -0500 Received: from mail.bootlin.com ([62.4.15.54]:35966 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728757AbeKOUsq (ORCPT ); Thu, 15 Nov 2018 15:48:46 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id AC01720746; Thu, 15 Nov 2018 11:41:27 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 74B532039F; Thu, 15 Nov 2018 11:41:17 +0100 (CET) Date: Thu, 15 Nov 2018 11:41:16 +0100 From: Boris Brezillon To: YueHaibing Cc: Greg Kroah-Hartman , Arnd Bergmann , , Subject: Re: [PATCH -next] i3c: master: Remove set but not used variable 'old_i3c_scl_lim' Message-ID: <20181115114116.3059e317@bbrezillon> In-Reply-To: <1542175847-49517-1-git-send-email-yuehaibing@huawei.com> References: <1542175847-49517-1-git-send-email-yuehaibing@huawei.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Nov 2018 06:10:47 +0000 YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/i3c/master/i3c-master-cdns.c: In function 'cdns_i3c_master_do_daa': > drivers/i3c/master/i3c-master-cdns.c:1137:16: warning: > variable 'old_i3c_scl_lim' set but not used [-Wunused-but-set-variable] > > It never used since introdution in commit > acfab7d324b2 ("i3c: master: Add driver for Cadence IP") > > Signed-off-by: YueHaibing Applied. Thanks, Boris > --- > drivers/i3c/master/i3c-master-cdns.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/i3c/master/i3c-master-cdns.c b/drivers/i3c/master/i3c-master-cdns.c > index ad40162..e828921 100644 > --- a/drivers/i3c/master/i3c-master-cdns.c > +++ b/drivers/i3c/master/i3c-master-cdns.c > @@ -1133,7 +1133,6 @@ static void cdns_i3c_master_upd_i3c_scl_lim(struct cdns_i3c_master *master) > static int cdns_i3c_master_do_daa(struct i3c_master_controller *m) > { > struct cdns_i3c_master *master = to_cdns_i3c_master(m); > - unsigned long old_i3c_scl_lim; > u32 olddevs, newdevs; > int ret, slot; > u8 addrs[MAX_DEVS] = { }; > @@ -1165,9 +1164,6 @@ static int cdns_i3c_master_do_daa(struct i3c_master_controller *m) > newdevs = readl(master->regs + DEVS_CTRL) & DEVS_CTRL_DEVS_ACTIVE_MASK; > newdevs &= ~olddevs; > > - /* Save the old limitation before add devices. */ > - old_i3c_scl_lim = master->i3c_scl_lim; > - > /* > * Clear all retaining registers filled during DAA. We already > * have the addressed assigned to them in the addrs array. > > >