Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6290444imu; Tue, 13 Nov 2018 22:02:33 -0800 (PST) X-Google-Smtp-Source: AJdET5eM6uB4ytSy8q8EI84vEGeJ01UujJE50ZJJQg7fxH2f/NzOCMjZk2IZXooH7mY3Cb7HL/hy X-Received: by 2002:a63:c447:: with SMTP id m7mr538891pgg.27.1542175353661; Tue, 13 Nov 2018 22:02:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542175353; cv=none; d=google.com; s=arc-20160816; b=axeq11X/MQYQOudEpQA+ZIKzdPbynsG5+qU5udiiSE7C4WQallETaM/Kzq69MxdGQs O0iuT7qqxv9bDuK3F1asgJIRxQw0481sdidmqUre0aZh3Y9N120Y2O2MoJWHSUHdGijo 7MaFYR49Vl3qfHJ1xT9r/h6vXSfG9f6XMJ0JGTJi/CBiL4u4Dddk+cKZzjgPmCcC9Hfx +wFogNsluIKqY/D6v/N+BVnvnZqU74GTiqp4hytTyB0SYsBgJCc6n1GJzip4aIFYoYKW KdroqAEFnhPTIV5wBx011GI2Zv2CHv4mLJvXu7Bihx0fLEBdZNGu1TFuE7WmJVS78CPa 30Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from; bh=jor1GMPR6QhOt3cPz1i35A9m/FuQ9V3r+nCqI8Gni8M=; b=M0T1J9FGqlWz48W88szXwnYx1lBRk8mnYVWyYRdG/YAlEOIrioSRLKZZc+UMl+VUeI /1uNAVf+6m42IaNj5+r16YV3PaKIG2xxJM4/4tvt6mn1dwyTgT3TU+7Pch/DgwbBvuDn 6zhuV8kFvFejBtQVNmBByUUSLGTQctXPIdMLtBKfO37YVLhM7F/Hxu/NBAZ2OIOdlEFF rd+PXsoMXoqkF0bb1/GVQj/kVvZbdbKmzpjRBU7hak2TJl2/LuJI0alB30ek5DXi/Yvw lOBf72tIt1gMssCMgtQai8GqX7P3Mus3YWiQ1rpCA/RibblOT7865X0W9pN3aYetAAO4 xWSQ== 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 h68-v6si25430097pfb.142.2018.11.13.22.02.16; Tue, 13 Nov 2018 22:02:33 -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 S1730979AbeKNQDl (ORCPT + 99 others); Wed, 14 Nov 2018 11:03:41 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:14660 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726842AbeKNQDl (ORCPT ); Wed, 14 Nov 2018 11:03:41 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 30E42E554F7A5; Wed, 14 Nov 2018 14:01:30 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Wed, 14 Nov 2018 14:01:22 +0800 From: YueHaibing To: Boris Brezillon , Greg Kroah-Hartman , Arnd Bergmann CC: YueHaibing , , Subject: [PATCH -next] i3c: master: Remove set but not used variable 'old_i3c_scl_lim' Date: Wed, 14 Nov 2018 06:10:47 +0000 Message-ID: <1542175847-49517-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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.