Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2217129pxb; Thu, 3 Feb 2022 01:47:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ1/DO642DHCY5mNTCerBDtpvhfGm1FTVFLDr0HVh7e9CyylrRrxsesBq7PGlz50/yO2hy X-Received: by 2002:a17:907:2d8e:: with SMTP id gt14mr28639834ejc.509.1643881679136; Thu, 03 Feb 2022 01:47:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643881679; cv=none; d=google.com; s=arc-20160816; b=WIdWVJ5TRvPyogrn34QaI6d6jp7NZ6AnJW0e+iwLSE9d7V08U0UYITWQ4chvlE67wG KwxSokcandIu6D8OuhqF8gOG9hGVkFXhq5bXktWlPJugpVZA4uEXTX9f7XWdqFeJaaF7 +/zxvmPmxwZNiC2J/uhK4ouZXwEOjG9MlOofT+Zm3BrWjf9X2Z6XkbHluP8U1ZTX3se0 YgUEIzuTCcoe/94+s5zpKM5/GO0ts3Wi3mlRxof6rlRR/yb2Xc9uXK5ppKHcSIhKAGgl nLfQrSyyReyJvI9vDyEGHiCUtVrjOiCfOn2ukr14FJUiK0DyXgm8PGkadbacGiKP762f fGQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/Q6+9kMcmDBF67PVz9U0U/2xhXYcp18AhJAN7tezojo=; b=rli09n3VODO0jmacysx9CJ42FC40+xfCfITcuJ/pFyJdi1XGDlcZ2rUHBSPfNE9oLt gHz/FXMOUBdxO59SuNBg9DaEChMbAK2VlEA18JAYjYdZWqnXXgR8niQ1yFmBI2QJN7ln gCGgJAN1fa5HGTFedWhQKkP6kcBmRkY0wBOAKNe+vGJF/0vjkVWhKw+LgGV6RAku5YdA XEX6PbJ8zLinYSAIqGPgqNjHGfw1xoS8jxrB2VOGy6QypW0rg7GEYhN/Cz04k71wO6oR QAh1vcOF1ag/sNW/C/G8C5LLJHAOMIOC/YAYprmr1xz03eyAab0UxrUuiPgZiyVDjcVd IlhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m23si12437254ejn.656.2022.02.03.01.47.29; Thu, 03 Feb 2022 01:47:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236330AbiBCF0i (ORCPT + 99 others); Thu, 3 Feb 2022 00:26:38 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:33109 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbiBCF0h (ORCPT ); Thu, 3 Feb 2022 00:26:37 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V3UBDaW_1643865995; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V3UBDaW_1643865995) by smtp.aliyun-inc.com(127.0.0.1); Thu, 03 Feb 2022 13:26:35 +0800 From: Yang Li To: jack@suse.com Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] mm/fs: remove variable bdi set but not used Date: Thu, 3 Feb 2022 13:26:33 +0800 Message-Id: <20220203052633.54000-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The code that uses the pointer 'bdi' has been removed in commit: '37c32ade079f000c8e539730f254b14fae0d3b49' and inode_to_bdi() doesn't change 'inode', so the declaration and assignment of 'bdi' can be removed. Eliminate the following clang warning: fs/ext2/ialloc.c:173:27: warning: variable 'bdi' set but not used Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/ext2/ialloc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index d632764da240..998dd2ac8008 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -170,9 +170,6 @@ static void ext2_preread_inode(struct inode *inode) unsigned long offset; unsigned long block; struct ext2_group_desc * gdp; - struct backing_dev_info *bdi; - - bdi = inode_to_bdi(inode); block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL); -- 2.20.1.7.g153144c