Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2075741rdd; Thu, 11 Jan 2024 20:27:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IElIrmrWaN6QA+v/Y8tjOJfU1uB/yvgdFiKSTniOx99PewdFcLNFNof6GNbPz3jSdC5Dv2L X-Received: by 2002:aa7:c6ce:0:b0:557:dd03:cd with SMTP id b14-20020aa7c6ce000000b00557dd0300cdmr829724eds.19.1705033636403; Thu, 11 Jan 2024 20:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705033636; cv=none; d=google.com; s=arc-20160816; b=N6yBI0rgmppk0coDb8U/vtLMqmq8Qiu/swsyevcDIKZT2mpqpu3FwTK5h4lD+DK8JC TSPqv4Ukju71ekv9aOHnRIqhYHHYxasJetyMWxav61Ts+qcC2DRMzIiSTd+7qmmxeHd6 O7oel5oupL9Cr5ktgnzKWR5oRXEoh4Ga4KOQChsP8DbSCckSM9LSZJPypiOFTk0cFHil JdE1P8dF4qzfplO1qLz/1A/kqtrVoCpM7RsQ99v5VFufHvuM/Q4xy/kEHilZXTfzXfhi y20aHdpt0Ulf6caFHWxHBGdmKVD5SG+3R430MMrRfKvwv1IFWV3LayglJ+mDXWLdWX1k zYKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=ocO7Ig+rXDn9wxzBcb1YyK+2RQ7TVNgvuK5/YYCLOqQ=; fh=BXVXe17ym78JgAWuQ0i1JfibfW2+CZBRaNYbNM9eTDQ=; b=ITIojsaOAnl35Q95PQNkLm7LDS9MEwZz3b2fCD0G7ksJkQ7HF+qbQpSfvIyzTKs85d EYrUk2CUtp7tUvrXgIvZ5cUCIHeXxul8R+udYxgK0E0Fdn3+AQA7uVxAe1RunKu31SWB +QkEqv0RGE8SpElOxnBLyKDzVXkfutlH0gTezjWp8c47kPFxXckXEEz3O+5gsj/UyDCa EzM5xkldRuad3fDZB/qKDkLl+30ovY8wn/svRmJq+FhAgBRY98A8d9wEHUxbkmTURBIE 5Os107v0SGiy5NYxN+lHwM73D1JHwwDiay0vTR1HtVghlJvw5Gy3Tu8UZVtlTFV7psLD UgpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24287-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ba9-20020a0564021ac900b00551abfd2418si1076267edb.657.2024.01.11.20.27.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 20:27:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24287-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2C06B1F269EE for ; Fri, 12 Jan 2024 04:27:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D36D01D53F; Fri, 12 Jan 2024 04:27:05 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 01CA51B286; Fri, 12 Jan 2024 04:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id 2EF13604F04CD; Fri, 12 Jan 2024 12:26:45 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: mark@fasheh.com, jlbec@evilplan.org, joseph.qi@linux.alibaba.com, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com Cc: Su Hui , ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel-janitors@vger.kernel.org Subject: [PATCH] ocfs2: remove useless code in ocfs2_try_to_merge_extent Date: Fri, 12 Jan 2024 12:26:40 +0800 Message-Id: <20240112042639.3948236-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Clang static checker warning: Value stored to 'rec' is never read. Remove this useless code to silent this warning. Signed-off-by: Su Hui --- fs/ocfs2/alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index ea9127ba3208..71729e4326d3 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c @@ -3743,8 +3743,6 @@ static int ocfs2_try_to_merge_extent(handle_t *handle, goto out; } - rec = &el->l_recs[split_index]; - /* * Note that we don't pass split_rec here on purpose - * we've merged it into the rec already. -- 2.30.2