Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2643778rdb; Tue, 12 Sep 2023 08:03:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGr95kaPFPLdqUld9zF2bkM0KAHFu8/EeTwXD86pnP3RS7DyoeA/z642SZa+fYltYdh3EOj X-Received: by 2002:a17:902:74c6:b0:1b8:400a:48f2 with SMTP id f6-20020a17090274c600b001b8400a48f2mr13671327plt.62.1694530979960; Tue, 12 Sep 2023 08:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694530979; cv=none; d=google.com; s=arc-20160816; b=IipRUvV5As49xHMFiB41U9t7TPG2bi/SHVcLj6KGK09hYmcPd3u5TVzfXtHxQULkD9 kmc8I7dQRQhpff+VImejT6vgBFnZqDurQUOjzWfBuJS+tnACSMhZ6thHkVuB7KbmbMlq Pp3sNJeU5VjU9J5Q2yrSiebrwSBGSTHM7nOdrPQTwcKR4MJVg91SShuiKGXAiZ1TxJOV IME/W8sLeC5NJVocFx2l2yfrCqLepXnpiVqoP5ZW0cTbpTGql6Ch2CP2mgPb5AVkyaN5 YCZ3XeI1e9F46umBvmthNNvEappu/CVaPFAJVPa2SHCkbsgujf5bcgOXzZVbZRYJ1a/U EeNA== 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:dkim-signature; bh=Ia4qpsc0kAQCExjGVk+ALPebqpFev4o6vOaP85jCENk=; fh=XG4WW3CNAL509GDoc/W3Ryl++WqlrKFHTUxG5J6uH4c=; b=WJd8jwky6dHZKT4ZnGZBkx5hGexkbv8YeNkcLvFN2SMIdhp5CkdP+TG9bdRmmO1ujW qaALmo209tQr90m48tEom6iukdolqLqlKNM/Zwj0a6SFo6BON6v5YkY5aphOe2QxVT7v ItjbkMRstMIGJUOWfk4XLj3b1o7/gRiF1B2krSn1c0KqEgAUjTSRrDosx1Drks2t3xcm OYUU+MmYTyZ89SqZh3rJ7ALnvVNPZHygIjxlsbZ4wmc7feo/sOee6WTOMijk7lJgj2zk QxLItSHqf7VG/vBhjvuXoF1kr+xfHEVVQmmQiTFRq+gZJenDOfM8THvaJT9vpicQw5AJ 6gBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=H4iMhXgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s13-20020a170902ea0d00b001bdb34b67bbsi8514012plg.407.2023.09.12.08.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 08:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=H4iMhXgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2CC0380AC443; Tue, 12 Sep 2023 05:38:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235203AbjILMhx (ORCPT + 99 others); Tue, 12 Sep 2023 08:37:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235141AbjILMhv (ORCPT ); Tue, 12 Sep 2023 08:37:51 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9518D9F; Tue, 12 Sep 2023 05:37:47 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-403004a96eeso35290275e9.3; Tue, 12 Sep 2023 05:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694522266; x=1695127066; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ia4qpsc0kAQCExjGVk+ALPebqpFev4o6vOaP85jCENk=; b=H4iMhXgEFzO6paPDTUMwWHFcmZtntcmdl6S+gVmfc8GdHp9wITNioJWOEagfHPIDCt j9X4iVjSzxy+p2dkSHRARlM2cO692mytRNRDA+Q6qt+LlA6lSDNYLbaYycPuVZ3OqvZm siQNcBY+hYMQkZ5S4aSkkFoFneFz7qN0FD4EEAm5o3AYFD7MKhCLGyiQNG2PQm7oe/nL zCPOOnlggMeZZ0hIRES7AmIsJGUGlyBg8d1Vrt5VssNjY6pP4fdfrcov0k4lXwk6oApE M07JQ2CXMwDp9mULHFvKlw0hpSGT7VrklJ7ifI2k6hyd2GD4a3TcsWRiQ9zLo+kllQey 1+2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694522266; x=1695127066; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ia4qpsc0kAQCExjGVk+ALPebqpFev4o6vOaP85jCENk=; b=mAB0noxF8vRVCBEJjb3VX65cX+Cc+g/lmlQYQzj9/FJOAgTo9oHnafAEdWNrNFInld A/ms8D05sorzkjMCMD6Olv/Ab+p+6p7U/JzDi4z8WzQa5PqyWuISyHzBctV/iK6amxso lal38Ter49oUAfwjIGcrd23x6Tr1PylHJ+3amiZWPeXyfT1OMuq8KznUeyvuwPg6Mf4g /d3RTz9+I71fDIq55gEg0MyHTDds7XK84nakbxufxmSB3RrkIy67wwRRIgFCaLIqdjwc dcKGEFWEZGh0bYTfnLDIeesw3Yovat/fVc13Zq23bf5Ad+g45i8h9GSaqSixYc3bpRS+ SnFg== X-Gm-Message-State: AOJu0Ywz8jwr3sLuTip/KbBu4EelUFOwKJc+z67KZDyKDS3ce8r6a/79 Y9AGmBQCkr36KGuk7fd/9h/KYM/YaBQOAw== X-Received: by 2002:a5d:4944:0:b0:317:3d6c:5b27 with SMTP id r4-20020a5d4944000000b003173d6c5b27mr9411793wrs.46.1694522265730; Tue, 12 Sep 2023 05:37:45 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id c1-20020a5d4cc1000000b0031accc7228asm12706194wrt.34.2023.09.12.05.37.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:37:45 -0700 (PDT) From: Colin Ian King To: Kent Overstreet , Brian Foster , linux-bcachefs@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5][next] bcachefs: clean up some redundant assignments Date: Tue, 12 Sep 2023 13:37:39 +0100 Message-Id: <20230912123744.3929609-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 05:38:27 -0700 (PDT) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Clean up some redundant assignments and variables based on warnings found by clang scan build static analysis. Colin Ian King (5): bcachefs: remove redundant initialization of pointer d bcachefs: remove redundant initialization of pointer dst bcachefs: remove redundant initializations of variables start_offset and end_offset bcachefs: remove duplicated assignment to variable offset_into_extent bcachefs: remove redundant pointer q fs/bcachefs/btree_update_interior.c | 2 +- fs/bcachefs/buckets.c | 2 +- fs/bcachefs/disk_groups.c | 3 +-- fs/bcachefs/fs-io.c | 4 ++-- fs/bcachefs/io.c | 1 - fs/bcachefs/quota.c | 3 --- 6 files changed, 5 insertions(+), 10 deletions(-) -- 2.39.2