Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp732951pxm; Fri, 25 Feb 2022 18:38:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyi+C3sOgPiiQlRsXHRItazcb+CWAC0gaUMZzqUL+uUEwQ9/5rQFu57/W5vnTWB5k+duHqt X-Received: by 2002:a05:6a00:987:b0:4f3:e5d3:448d with SMTP id u7-20020a056a00098700b004f3e5d3448dmr1308234pfg.14.1645843132063; Fri, 25 Feb 2022 18:38:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645843132; cv=none; d=google.com; s=arc-20160816; b=L8geVonqRUJY4xCHegxc6R83128+QXBsqNPKRLMk88dHfitUh44Q82+MxwL/m6Me/x ucy937D+ZNtfJGL7QZnRpJKuX8QF1r4KArc4kROXHpPyj682SrCrznMt9OYeTAgeqNiC n6qHhgqAwkFG0iaRpdemKmXiXTnxgKDgG0ooZnKucsMeXOtVBSkaQFGuY6Y/dHkLIsHI HZFtIDHbBkiTkT+iaiRTe0Fdgat0vbdoL8QQRaxG3J+nSELf0+yDnb4hykPCbZSIY44A TELsTNMBVXowgmhxV+O4ax6ccNDDaCUW+uVRHgFVKXXZ6TIdiFXaPWE7ErQefBbhVlDb wV/w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=30FtiEJuq9qGFmUI8IIMSlcoGWFh+LIv/FHGSxMj9s4=; b=D3uqFrx4rs5HR86d4gZwH4fh2jodoF50ZhpwBCptMAfy2zXJmNy2NLJyNq17eYZKTM Qa+1brJGwaIVOP3ElyKOmQXjnCsyaPbiaqeGSab1FwYPYC85pCF6LVdk53OYjN6DhQ6I ikLPaKEagTuw9icox/pQ+yiR1fMmDRgxtdHkQSbKoaUqYZxxwCVfmtU8cv+Wnx+brBBP BJbfpjnH5Tfp5V6WzcO2wyvBfIlRijoqkX8X0npciucOLWckLEqyNKfP9f//qaNWrXEU NYdcWoBhDMVQMDRPAQNI9+z8PV7FUCQMlaQRP9IOwK+KpiCTTrdfQiG/i4pi6OVkRLO/ NqvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="XxbC7/vB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e5-20020a17090301c500b0014d8a9ac31bsi3873128plh.539.2022.02.25.18.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 18:38:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="XxbC7/vB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CDCD81BF931; Fri, 25 Feb 2022 18:03:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233648AbiBYSzc (ORCPT + 99 others); Fri, 25 Feb 2022 13:55:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233613AbiBYSz2 (ORCPT ); Fri, 25 Feb 2022 13:55:28 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 990C61CABD2; Fri, 25 Feb 2022 10:54:55 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id a23so12607875eju.3; Fri, 25 Feb 2022 10:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=30FtiEJuq9qGFmUI8IIMSlcoGWFh+LIv/FHGSxMj9s4=; b=XxbC7/vBtnDNEt7ILz46BHuX63TOinU9K9L0OafslHSPYMTj9mZGTjor8bMkLEuCrw xYrZdh9VK2A44AZUQEnV6cJmFuzNOGJ6ugAmq8w+yNMPYNpVdVLGBQscP1/i0F5OANJO GQKMOaenKgE9qbUbABe7Rf7jadC/rkhBFqQKkjy/4XA42hC5Nk75RDUahybN4ODWiLxR 4OTP0boDnQ7z67o7G9ZjmkXv9P5HubXkGMJIOTOd3v1F4OI4tsXgT72Y692PapJcLMK6 ClQ4/U66nD7x5NWoSGopOcUpjz3LPxBoWLQ/5tiVtpXrjuuIBO++Nv+erm8r0ggZbSjD F2Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=30FtiEJuq9qGFmUI8IIMSlcoGWFh+LIv/FHGSxMj9s4=; b=Iqo25f6geELFFsqKx/7Sp/u6TZDI8byBrQt0mlO9GzEYcAFp5zMlW/Ob4anktxeEAh etLaVyDePnm0UlmtpRdnp9jT6emqHDbihZ0E8cqnUFcpOHO64BBA0sqQFjobe7fYNmNp 7CubzFWb/UnB1jSDVXfVavqUtU4ncwrPOS8bbGg1rv68jNaaj6tiNXrqdqdsmZN3rk4c SSSbaN2Cy/a/j9+OFnGMf8VEQaMQst8H6aVdfqXhQy9EUwhwrQc0HaSiXHKCMCm5Vnk7 XDPGvUgDaq9pUOCAmqonhp4RFBalqWYkxWyDarIGRagK1ZOZMBCPrHpEa8w1HrfZuLz+ Fikw== X-Gm-Message-State: AOAM533MjtQ4X9bXqCkoObqjynWElQg3g9OiN24is0PBuclW3h8CYDTO 35ACWi+SYmYz8ILBraKMrM/KUyq9jas= X-Received: by 2002:a17:906:c1c6:b0:6d5:cc27:a66c with SMTP id bw6-20020a170906c1c600b006d5cc27a66cmr7402379ejb.650.1645815294126; Fri, 25 Feb 2022 10:54:54 -0800 (PST) Received: from heron.intern.cm-ag (p200300dc6f1cbe000000000000000fd2.dip0.t-ipconnect.de. [2003:dc:6f1c:be00::fd2]) by smtp.gmail.com with ESMTPSA id u19-20020a170906125300b006ceb043c8e1sm1328508eja.91.2022.02.25.10.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 10:54:53 -0800 (PST) From: Max Kellermann To: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH 3/4] fs/pipe: remove unnecessary "buf" initializer Date: Fri, 25 Feb 2022 19:54:30 +0100 Message-Id: <20220225185431.2617232-3-max.kellermann@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220225185431.2617232-1-max.kellermann@gmail.com> References: <20220225185431.2617232-1-max.kellermann@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This one has no effect because this value is not used before it is assigned again. To: Alexander Viro To: linux-fsdevel@vger.kernel.org To: linux-kernel@vger.kernel.org Signed-off-by: Max Kellermann --- fs/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pipe.c b/fs/pipe.c index aca717a89631..b2075ecd4751 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -487,7 +487,7 @@ pipe_write(struct kiocb *iocb, struct iov_iter *from) head = pipe->head; if (!pipe_full(head, pipe->tail, pipe->max_usage)) { unsigned int mask = pipe->ring_size - 1; - struct pipe_buffer *buf = &pipe->bufs[head & mask]; + struct pipe_buffer *buf; struct page *page = pipe->tmp_page; int copied; -- 2.34.0