Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp273599pxj; Thu, 13 May 2021 04:45:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFs5OVLd236zvtnQk1ddYcmmfxY0UVISwMNBBBb4HtM/1PCz2a8q/TBJzkdV8nqfanfPBT X-Received: by 2002:a05:6602:1695:: with SMTP id s21mr10939368iow.29.1620906349425; Thu, 13 May 2021 04:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620906349; cv=none; d=google.com; s=arc-20160816; b=EkF3uMbU+20de8SoItxGiDlix0w+sG4eYneiGuNGz2NSBUH2ufhTSsA0QHqpewnRqp NMhkB4qLaFnK3iJt1BKWwFFi/TaBAj92hcivNQYmJJ70mXA84gr8NF6FeP13Wmph/enE Kb0YUTBIOEpG1gd1I09L3oyAMLZq//hDZ+C0U2YvBRYagXRd244co0exEEqlylF8GRDV eHacxGN4x+rqkqALzkK/iVSJPlWZX4sQ+uRAHwPcZiHJP6olxrt0JdlWknRdWTZcEn+O 3HhCoy1O2/aXAFlFo0QrvqU0g7HuLg3beoaMoXq8rq9JXr1XUPSl+seokx9Pqsv0BTCL 5/hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=rgvNS8j+l4dkSrRV6B3AISFqnePDvX8rklp5c38/2T4=; b=lHyvOVc9lySiyv/hWvonzyJMAvZHxjRBeh+XCMhEBz70oGMM1+DkpeUIYzDbNd+BRw 7GfChzxulRfoHuykGkXXDLK4okPwiAiv3BsH3pcGbLZJ/a6niGIaHO9/giMxph7JptvW n+f7ZGSf8jWcnht1vXOv891v6m0KbKTX8qXmooT8m5l4a7caKlgVgP578QtNYvtnsAve LYC1zootOHE1IeCZfMUCCEep3rTcTEoNJ9APcep6BLVRx/4i3oI7flBW8GYubg06dJir /vc9+e3qvuPPQKE7rzmsFcFT308EWCQH0DrSr3SABnCJ5VkyXP+hLDPu6lNhTkjWS3nC /+vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si3251133ioq.28.2021.05.13.04.45.35; Thu, 13 May 2021 04:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S231967AbhEMKwg (ORCPT + 99 others); Thu, 13 May 2021 06:52:36 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:36558 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbhEMKwg (ORCPT ); Thu, 13 May 2021 06:52:36 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R301e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UYkXVSS_1620903080; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UYkXVSS_1620903080) by smtp.aliyun-inc.com(127.0.0.1); Thu, 13 May 2021 18:51:25 +0800 From: Jiapeng Chong To: djwong@kernel.org Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] xfs: Remove redundant assignment to busy Date: Thu, 13 May 2021 18:51:18 +0800 Message-Id: <1620903078-58184-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable busy is set to false, but this value is never read as it is overwritten or not used later on, hence it is a redundant assignment and can be removed. Clean up the following clang-analyzer warning: fs/xfs/libxfs/xfs_alloc.c:1679:2: warning: Value stored to 'busy' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/xfs/libxfs/xfs_alloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c index 82b7cbb..ae46fe6 100644 --- a/fs/xfs/libxfs/xfs_alloc.c +++ b/fs/xfs/libxfs/xfs_alloc.c @@ -1676,7 +1676,6 @@ struct xfs_alloc_cur { cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, args->agno, XFS_BTNUM_CNT); bno_cur = NULL; - busy = false; /* * Look for an entry >= maxlen+alignment-1 blocks. -- 1.8.3.1