Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2733183rdb; Tue, 12 Sep 2023 10:20:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGU/elBB1UpjS9twhu9+zkiE759nqYDah2lCVlN9vDvcNpjqTnLUPw5G80VjnRjXVC3AneI X-Received: by 2002:a05:6a20:7da5:b0:13e:99c0:fe6e with SMTP id v37-20020a056a207da500b0013e99c0fe6emr3936164pzj.5.1694539214826; Tue, 12 Sep 2023 10:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694539214; cv=none; d=google.com; s=arc-20160816; b=EGMI3l9sQW5/FhyFaNDRZ+Ed0IxSHqOn9oji/pGe6hmmvnHxP1L1v9jdc2Ju79PJJZ ojIh61sWr23RiqnWSgmXw9ry0JLQtYHMiySSPEz/0k9d8LTNOaiCeXcLE/H45te58OIR 8BjV/q7BZ916nI+cS5hk+2nQMt/VMWQzjSGFuSZUD92NQZFViQWNbXiir+qVIcXN8qjS vUOEP57sbnEhis+AQl7ranDolYoVvtYLoV4xe26+D/L4W2z8NLLoW5Yd/8kEbUiV4CKX k8qHju09K1QqW5s5pZtChWA/eBggYXOdmsVtuR8nI5GCrNS/LOgwgdiPi/5HsH1Y8f8O RNqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C4ZDT0QRa1Q+8y0wTjNXL6JhVStydiLlcCxHKZqKT+w=; fh=cMNnuqV5WLYmfgPWmGTwi8rFSDju2LG6010pY4IegvQ=; b=thOOY1OcNhCSGH2VoGnzbhKwd8vR38SaGHYCaLwuE3SZ/WH4hVqI+BoTNDZ260Qadx KwTbj2e7NPcDhx1oL6NZl3AMW+6b6PB2V9yHZ3HChSV7QF2+sn2OrptXdZRyOYZwb5Jv twRza4mwL0kmkvF8yjRP95UGAEASQAkE2/o+iK5HcbJm8e1YuZTPGkwGi/waESPDEcH/ hOT0oqMECEfp9z5WNtlXOTi7ciPj/8yp+or7+DeZ72J3fEo5DT/gFejpmxcoLxzRXs7f U0D2cOaHqzzaFtYi6xg5ersh9VShy/RCQjvvYTvGwRSEiyL7ndKj9vO95i4kry8CVod8 HvDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hLglHfqZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v69-20020a638948000000b00557531eafb0si8057631pgd.559.2023.09.12.10.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 10:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hLglHfqZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 927D1831DBCD; Tue, 12 Sep 2023 06:53:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235771AbjILNxJ (ORCPT + 99 others); Tue, 12 Sep 2023 09:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235697AbjILNxE (ORCPT ); Tue, 12 Sep 2023 09:53:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 08D7A170E for ; Tue, 12 Sep 2023 06:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694526736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C4ZDT0QRa1Q+8y0wTjNXL6JhVStydiLlcCxHKZqKT+w=; b=hLglHfqZfPb1Vx7ZHeWQYZRzgALWGbjCbDI2uxHFnmGDehKCukawwjYlM8UrAEIuK6SA7n TkL+CnrqehRy0Lu0vuslaQ3cSshBTRvmr15IZKlMuq8pVmjyD/4rKBHPSKQJG7Paf1W9mq eHbVO+hBr0bbXOW93E86vS/Ca8H9WBM= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-217-FssxpqDCN56T9C3V-2dxhQ-1; Tue, 12 Sep 2023 09:52:14 -0400 X-MC-Unique: FssxpqDCN56T9C3V-2dxhQ-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4122b472e43so44582341cf.1 for ; Tue, 12 Sep 2023 06:52:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694526734; x=1695131534; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=C4ZDT0QRa1Q+8y0wTjNXL6JhVStydiLlcCxHKZqKT+w=; b=q1YoxLAY/Pb8sw8nhxawtLLaxjnJtYLe8RnvBs45OAoai1mZVkiXti0LTJs0THWace s1MNiZoNhqngR11jMg32emKTPmXW/DKv6za8Ke9q3h473Cm+nYkBoU3RevuTxIjRMYiF JJ0dvyVo7IlN9CKG4PC+DUm+aO2obDuQ6vfycH0pa0cfH4gj+lE3vXjt/7DeNTtfN9Pm kFJDNj/ZWftJPNNqNa7tlTZ9ppxZtzNsb5nDktP+NAg7euR2vfiHlDsUQP8tlUgprpI2 r2iW5Yu/y51JcaRNd5/FY0Sqd/qV9JNCkNnnPZTJBnS8MqB7Hu2/YUOHulRWR4OI86nX QTzw== X-Gm-Message-State: AOJu0YyZOg23KzPv30T90M78QvBOyUBSda53yI8HHx9D4MCZn8xdNTi8 j/XPLZc3BWavw0N2y8l0jLISMsAXN7SCoeiPJhECR6mlAxisP1giDUXq6nq+RWk1/4iHbwtTTCJ W7tkeQCUtMx4OjRve1nk7/hDd X-Received: by 2002:ac8:5d88:0:b0:405:4816:6eef with SMTP id d8-20020ac85d88000000b0040548166eefmr3610260qtx.24.1694526734444; Tue, 12 Sep 2023 06:52:14 -0700 (PDT) X-Received: by 2002:ac8:5d88:0:b0:405:4816:6eef with SMTP id d8-20020ac85d88000000b0040548166eefmr3610242qtx.24.1694526734227; Tue, 12 Sep 2023 06:52:14 -0700 (PDT) Received: from bfoster (c-24-60-61-41.hsd1.ma.comcast.net. [24.60.61.41]) by smtp.gmail.com with ESMTPSA id z17-20020ac84551000000b004108f6788a6sm3326401qtn.41.2023.09.12.06.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 06:52:13 -0700 (PDT) Date: Tue, 12 Sep 2023 09:52:26 -0400 From: Brian Foster To: Colin Ian King Cc: Kent Overstreet , linux-bcachefs@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5][next] bcachefs: clean up some redundant assignments Message-ID: References: <20230912123744.3929609-1-colin.i.king@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912123744.3929609-1-colin.i.king@gmail.com> 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 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 06:53:13 -0700 (PDT) On Tue, Sep 12, 2023 at 01:37:39PM +0100, Colin Ian King wrote: > Clean up some redundant assignments and variables based on warnings > found by clang scan build static analysis. > These all look good to me. For the series: Reviewed-by: Brian Foster > 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 >