Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7553710ybl; Tue, 24 Dec 2019 04:45:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxNFOz86rzxolxIXpc3aNvJICv7MUCw1MFcXvhR8W7bWNuJSoESPNIlHkj6BhvfzCCX+N87 X-Received: by 2002:a9d:67d2:: with SMTP id c18mr37252294otn.362.1577191531152; Tue, 24 Dec 2019 04:45:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577191531; cv=none; d=google.com; s=arc-20160816; b=SFOY6ngPO+xizjYYaliY2ENm/WWanT0S5vzi/L/LD0xkLs5V4Xv2zVtDUys8CKkqaA E7iOqpGyhsrdei/OPLd6w1O9aaJ7lFU+aPkImxY16g5cnww7d1FMFuTFzS0ofbCD2VCX LsFOmhShDZCh1RfX2Kw3e46QDoSmu4kn0EsIBiqnW0GD9fm+YZ/dswfD5LoyE2LJTEOq RtJ6phk4usZs4DXbvGOx+B7E03cRoaTXRuJ2Mm6aXjq4YpdmEk2lG6fH8ReQQw+JAopL 5HKgGpqWg0vcFDlt8bgUZXD17BLeDbpG5zm4jvDrxeaFVkhQG6yp2PtnhzpAocfCwnPq 9Aag== 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=G0QdcOC6sj27syhjjWZsQNzIpnaNTx3E6nQX9GxnBAA=; b=GG90ZFHJuwahMImat0Qg+XV2IaoP4gTcrW2QTG40INTtos56+N0cIJjeJvHWv/UoDz ZITJKRzrljriGVnyhi5WrxHZElwF7wSUClku3ixwsCxXsc+ejUu4i+qvJGYyZh2RT/1Q QIYobGhk/2b+CbVBVeDdNA72SzAKYJUWjxUqDQg5UR8z/5V65fK8oAUE5QCw8l1pXnxp VYA5hq67bPoPD0fgAj/4bzeUFftUQ+c8rjqwhd5LwF+PrVoHHwsb29Nt4HNrOkAhAOuR DPKXwuHueZrzk063Dtpdm3lumRarkYSjjcJ1LcFdv65PNfKX0+z6vxakM0F2vP2Reg1X gsIA== 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 a5si7057548oie.17.2019.12.24.04.45.19; Tue, 24 Dec 2019 04:45:31 -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 S1726234AbfLXMol (ORCPT + 99 others); Tue, 24 Dec 2019 07:44:41 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:51810 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726206AbfLXMol (ORCPT ); Tue, 24 Dec 2019 07:44:41 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5F26D71D9B931032672C; Tue, 24 Dec 2019 20:44:37 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Dec 2019 20:44:29 +0800 From: YueHaibing To: , CC: , , YueHaibing Subject: [PATCH -next] f2fs: remove set but not used variable 'cs_block' Date: Tue, 24 Dec 2019 20:43:59 +0800 Message-ID: <20191224124359.15040-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.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fs/f2fs/segment.c: In function fix_curseg_write_pointer: fs/f2fs/segment.c:4485:35: warning: variable cs_block set but not used [-Wunused-but-set-variable] It is never used since commit 362d8a920384 ("f2fs: Check write pointer consistency of open zones") , so remove it. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- fs/f2fs/segment.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index a951953..72cf257 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -4482,14 +4482,13 @@ static int fix_curseg_write_pointer(struct f2fs_sb_info *sbi, int type) struct f2fs_dev_info *zbd; struct blk_zone zone; unsigned int cs_section, wp_segno, wp_blkoff, wp_sector_off; - block_t cs_zone_block, wp_block, cs_block; + block_t cs_zone_block, wp_block; unsigned int log_sectors_per_block = sbi->log_blocksize - SECTOR_SHIFT; sector_t zone_sector; int err; cs_section = GET_SEC_FROM_SEG(sbi, cs->segno); cs_zone_block = START_BLOCK(sbi, GET_SEG_FROM_SEC(sbi, cs_section)); - cs_block = START_BLOCK(sbi, cs->segno) + cs->next_blkoff; zbd = get_target_zoned_dev(sbi, cs_zone_block); if (!zbd) -- 2.7.4