From nobody Wed Nov 24 23:02:37 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C0183188E49D; Wed, 24 Nov 2021 23:02:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzxNs3XRVz3KML; Wed, 24 Nov 2021 23:02:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5AE8112762; Wed, 24 Nov 2021 23:02:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AON2bmG056780; Wed, 24 Nov 2021 23:02:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AON2buG056779; Wed, 24 Nov 2021 23:02:37 GMT (envelope-from git) Date: Wed, 24 Nov 2021 23:02:37 GMT Message-Id: <202111242302.1AON2buG056779@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 40dd1c9c06eb - main - ext2: plug set-but-not-used vars List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 40dd1c9c06ebe8dc7ea082c4bdc79343137a3997 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637794957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q8tgvVWlaIkLgJ+1l8rhDK4JsXdg5X7qyAMdOKOVkzk=; b=K0xVwPOcG5W/swKfRaO1iAsIuER3Tz9hQTDRC7xI55nIsD2dxp/IWDF+deGShjmbXXXwZd WGiTyKHR0CJHhj52rNM94ATEYGkEb1+yl7IQAFUyD2pVUyd52wsAYuVr8r+6vHHBD8rE4F ptISS/GpixxlZHr9Zv+OS6/pmNxSr8Bq7FTreX1vptgXkOPE6+lClxMgcSmjfqKeuwSl8i 25q1wKqmAoeFMOHTSXOa5kXuUI1zbHfVUMGarN53QglzO0I11FC09ndd/EfpoLaCQ8npwV CQKeB3X854c9K+651n22rSuow0PPop8NIly8TJ53I0pG6+4B9b1twK+KUbVhAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637794957; a=rsa-sha256; cv=none; b=Ge+hqE2Y6VII4yVKJMgPwueRAINgM26SvxV3bUm8cX+xQOw1ePZufbe61Okkd6IrsIUelT HppJVrgu7Y46aWPJCANLZOJOaI50A/ugs3eYC7b9zWisjcV8VXbLcN/Or7HewPg1g4ETlM hTHmLX8tfxVVYGnm9fRFfSZNR3UK/Bv1uUpRQ5yj0PX3P2+fzWZHgzpnsA+Xlgf8hprCsF J/QwsAUSGVwX+4Vyem+iHgcImEsSIqC1pV7wlkvo9LLu+cmo3zTSC2gU1lrcjUt2F28HqS eq1Ls11UYnld+pQqTRJKKU1fngbKkO4WBy4NmYXGdkN6co9fuws5yK03WUJj3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=40dd1c9c06ebe8dc7ea082c4bdc79343137a3997 commit 40dd1c9c06ebe8dc7ea082c4bdc79343137a3997 Author: Mateusz Guzik AuthorDate: 2021-11-24 22:59:51 +0000 Commit: Mateusz Guzik CommitDate: 2021-11-24 23:02:26 +0000 ext2: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/fs/ext2fs/ext2_extents.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/fs/ext2fs/ext2_extents.c b/sys/fs/ext2fs/ext2_extents.c index 408f1a27ae76..3d393c4b7bbe 100644 --- a/sys/fs/ext2fs/ext2_extents.c +++ b/sys/fs/ext2fs/ext2_extents.c @@ -280,11 +280,8 @@ ext4_ext_in_cache(struct inode *ip, daddr_t lbn, struct ext4_extent *ep) static int ext4_ext_check_header(struct inode *ip, struct ext4_extent_header *eh) { - struct m_ext2fs *fs; char *error_msg; - fs = ip->i_e2fs; - if (le16toh(eh->eh_magic) != EXT4_EXT_MAGIC) { error_msg = "header: invalid magic"; goto corrupted; @@ -418,14 +415,12 @@ int ext4_ext_find_extent(struct inode *ip, daddr_t block, struct ext4_extent_path **ppath) { - struct m_ext2fs *fs; struct ext4_extent_header *eh; struct ext4_extent_path *path; struct buf *bp; uint64_t blk; int error, depth, i, ppos, alloc; - fs = ip->i_e2fs; eh = ext4_ext_inode_header(ip); depth = ext4_ext_inode_depth(ip); ppos = 0; @@ -690,12 +685,9 @@ static int ext4_ext_insert_index(struct inode *ip, struct ext4_extent_path *path, uint32_t lblk, e4fs_daddr_t blk) { - struct m_ext2fs *fs; struct ext4_extent_index *idx; int len; - fs = ip->i_e2fs; - if (lblk == le32toh(path->ep_index->ei_blk)) { SDT_PROBE2(ext2fs, , trace, extents, 1, "lblk == index blk => extent corrupted");