Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6452084ybi; Wed, 29 May 2019 08:03:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6ldIjGm9VMWD6m4JNfwH0QaFxCroxTCHQMuRBvkIyPHjwB3ZAlqqP/ko8NWTtlO9p/bhz X-Received: by 2002:a17:90a:480a:: with SMTP id a10mr12945558pjh.57.1559142214854; Wed, 29 May 2019 08:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559142214; cv=none; d=google.com; s=arc-20160816; b=RcRUGtmWXmDo253gjlic6O5WtW8JOSqEAQFM63qzsXa/DJHRHmBATRC/aEMl9tjya5 oHUhuGcyOhG7FyD/C7iC1fGhAQhNNOp2kHS+0mnswSFazoxG6JrKRMHJ5F6J1kgXgQCh jgJYy/atIO5oyueZenw6PVCHjs397e5vaANJIzgkik7qxWP5zzJX+OKiLn8a3BPpLybU RY4eND/ak0TnGzRl7KNlDW4Uygk33H5UvTKIRnG8Ov0IPOQ7VjLQFl0MrM0PAHQ0Vn27 hGrcMNb5ssmkGewMenzoAezwZhJwNFvyVRkzM37cJ4VneCWVvuCnhmhve08OiDTW8NkB Aq+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=XpTwqLgK/LdoP+qjx/IeCiVuJfLC6pri2DOnS+OhKoo=; b=znYGOFyJpXC+xxtqR1qG4F2Bi3ZNWhisdJquMLmxpZz832EjvhVxSfMOOu9D8AsdIi YI55r10STzoj/QUiJ6/NCHf5ApHZ04ivRkQhcEyCXJtdJ8V99Pnt6Nji0+I3IYQ2rznJ vd+k/aantJHZ6x5CJ9NMtyVVKPwNHpowU6WouoPTYXwRcGcBv/unEhmZJqXE8Xi7V19E erFSAYAEvKxayJ0IRGQ5qgzVuDso21w+6ZrCXdZVvEzVzNrrzV9ukYELHT3aVoGPNGqq IKSCcy71PPwdydPAMKQWsfvyTRYJoBdrfEbWFD0OGRkuls/O/DT3o7nnnM32QCoEE+Y2 0s5g== 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 i3si25603327pgq.440.2019.05.29.08.02.54; Wed, 29 May 2019 08:03:34 -0700 (PDT) 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 S1726658AbfE2PAi (ORCPT + 99 others); Wed, 29 May 2019 11:00:38 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17624 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726069AbfE2PAi (ORCPT ); Wed, 29 May 2019 11:00:38 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 42974EB7D7499281D36F; Wed, 29 May 2019 23:00:35 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Wed, 29 May 2019 23:00:16 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] eeprom: at24: Remove set but not used variable 'addr' Date: Wed, 29 May 2019 22:59:54 +0800 Message-ID: <20190529145954.14500-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] 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/misc/eeprom/at24.c: In function at24_make_dummy_client: drivers/misc/eeprom/at24.c:514:21: warning: variable addr set but not used [-Wunused-but-set-variable] It's not used since commit e7308628d0ae ("eeprom: at24: use devm_i2c_new_dummy_device()") Signed-off-by: YueHaibing --- drivers/misc/eeprom/at24.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index ba8e73812644..fa730bb342e8 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -511,13 +511,11 @@ static int at24_make_dummy_client(struct at24_data *at24, unsigned int index, struct regmap_config *regmap_config) { struct i2c_client *base_client, *dummy_client; - unsigned short int addr; struct regmap *regmap; struct device *dev; base_client = at24->client[0].client; dev = &base_client->dev; - addr = base_client->addr + index; dummy_client = devm_i2c_new_dummy_device(dev, base_client->adapter, base_client->addr + index); -- 2.17.1