Message ID | 20230406095817.703426-1-colin.i.king@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A799EC7618D for <linux-mm@archiver.kernel.org>; Thu, 6 Apr 2023 09:58:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 22C8C6B0080; Thu, 6 Apr 2023 05:58:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1DAE66B00A4; Thu, 6 Apr 2023 05:58:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0A33D6B00A5; Thu, 6 Apr 2023 05:58:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id EA2F86B0080 for <linux-mm@kvack.org>; Thu, 6 Apr 2023 05:58:21 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B8AAEA0EE9 for <linux-mm@kvack.org>; Thu, 6 Apr 2023 09:58:21 +0000 (UTC) X-FDA: 80650516002.01.301FC53 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by imf04.hostedemail.com (Postfix) with ESMTP id EFED74000B for <linux-mm@kvack.org>; Thu, 6 Apr 2023 09:58:19 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SUVvqtgw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of colin.i.king@gmail.com designates 209.85.128.46 as permitted sender) smtp.mailfrom=colin.i.king@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680775100; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=Ex1nEQ6SQPtfsRcSCBNx1zccngQ8xlE989ZM/J7JAV8=; b=k0VbW48sLw5+FVYXHkU6UzTbL4my5IR6I1Pr+XN+gn7ohiCbpxpu2Kk72dp4ZblXJTo80F ayI5I967XKpJV1lJeFul2y+YpLLHqQm03SBgG6pE1p5XkFBmjsaPBEKxrg9T2ESl4N2JPB T2Ez0zftzeTi4VjSTgLSzIG2pU5a38w= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SUVvqtgw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of colin.i.king@gmail.com designates 209.85.128.46 as permitted sender) smtp.mailfrom=colin.i.king@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680775100; a=rsa-sha256; cv=none; b=m2okwm1ZO2CVSss3RJqE1YjFmO4h1hP+pe0rfFNBWOXpNlk8wAktkAbP9IRDSRjAd1g9Ym rtqCDEvw1HdwdQ1FvKusunnPUk9in6F+xDOJBoHK4UNeLqXVEKLgDlB/kLFaGOHII+D7OT pqNeVSBJ0YO1b70nqMhiwk63Yq4S7M4= Received: by mail-wm1-f46.google.com with SMTP id j1-20020a05600c1c0100b003f04da00d07so3124466wms.1 for <linux-mm@kvack.org>; Thu, 06 Apr 2023 02:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680775098; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ex1nEQ6SQPtfsRcSCBNx1zccngQ8xlE989ZM/J7JAV8=; b=SUVvqtgw+8Reap0kc38YG9Xj5gMs5DnRXcEvzLPHcQqHVQRmFoTWex7gIqRil3Uvih 0nI4iq2JUjU0wQwe2qYm+4YihTfeYQ8vxsopWEatlZtdYot1dABUFUVQ1zZ/nJgFchQc PpozKMvS+q1jwypkGMgeLXoNqGcWNRK2WkOGaqDx6ecWRktLYUzokS8eoxvNloUrYH96 Wn90X9HG/08iZz4eideXBNLFAek4MNS/BIqR9bVU7nvMWn3Hv4R/KsAVBs5fNL2otgn6 68z/pLK8GVKoBebayGixq3rtMrWDhaRZXdBpO2FMQECoruYlgo5jcTFkQrKL4hoPlMya 5unA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680775098; 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=Ex1nEQ6SQPtfsRcSCBNx1zccngQ8xlE989ZM/J7JAV8=; b=l7fu3+5SNQf3dhf+mxuLQLnAiEUxZnCT9Ck9NUcBhu3Li+fILmPnrETeL9SefaWAu4 7Hh4PtHeEVJ/oBsrLpipfSByUUXUySoA1Lug/m0vC857JG3SAy3KyDUF0fqTnrZbENbG iG0qFME19XUpIvX/WdEGVsQVEFBaChaEsTOI2xDIdyjvEEBbvVwe0OXv14N8DFqztaW5 YrVq1scpNduNf14IPrbB4y7vq8F3yfuivLHoeU//KK1PcfrNA5ETyc6D+q4qJ5v+340+ ksYN43RqKbRQrIbSfQyV5nHxq2dHLmbu9p9X+aDEelEz9DT03DIboP/O22xJhGGI5LVK 095w== X-Gm-Message-State: AAQBX9eRwb5u69FfkiLyiokiFHwhnblbDBD+b9CiA/Vl3cb1K5NBV+wH rQVoID/FY/RK2p1G74E7FTo= X-Google-Smtp-Source: AKy350Zux8V6KhIk5EJGtTxXKWqrSUKbPeyWhFoOBzbCBoAQYkRGI3z7v1OKijEF3TqVfycDvCCnBQ== X-Received: by 2002:a7b:c85a:0:b0:3eb:3998:8c05 with SMTP id c26-20020a7bc85a000000b003eb39988c05mr4046048wml.6.1680775098452; Thu, 06 Apr 2023 02:58:18 -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 i7-20020a05600c290700b003ee70225ed2sm1123446wmd.15.2023.04.06.02.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 02:58:18 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: Matthew Wilcox <willy@infradead.org>, Andrew Morton <akpm@linux-foundation.org>, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] mm: truncate: remove redundant initialization of new_order Date: Thu, 6 Apr 2023 10:58:17 +0100 Message-Id: <20230406095817.703426-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: EFED74000B X-Stat-Signature: gbq8iwa5rd37a7j517upwk64ttwffo7x X-HE-Tag: 1680775099-559398 X-HE-Meta: U2FsdGVkX19IACzxbgq82EB9wW2DcZKuEbYiA09MeJ7avnrzEmyF597uzjUr/sAthSGZ1ZARDIhuy4HXxmimFI4VrPaRtZGpCDOaH5+nVajQ6uUFTT3p0Jp7bt0id3R8pJDA54ctircvtAOIViGb0TjOuryi7pMpBysWREQIvZ1m1dOC6mwh+ltRVwrbfqzzl7UT/IO9xcEve+5gDBxAXDeUHP2WAg08V/OCEpcdl2voPaie9vDUDmRbsZdBkPN0MV4cjDkYQnk9yeDohf1bK6lqP7yfp2k3Jdr+7FJLaxmz24BtW7TiFlMsNpq6gifA5Ay0k54/l1L39vKMHvNzzVywLr0yx6bY2Io99mEeOeDCCHLO6pSMPlZqu/+uxocL8U7NhDc6KLqwPEnC9qKBRceIDoHwgmm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jYsVbhH7ehXnZOJ0Xpns5xui4/R0bdSYT0w2Mg/jcbrtPh6Q0DZSa7SCkUFDd0uV1URmY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[next] mm: truncate: remove redundant initialization of new_order
|
expand
|
diff --git a/mm/truncate.c b/mm/truncate.c index 817efd5e94b4..d8dd7ee1654d 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -213,7 +213,7 @@ bool truncate_inode_partial_folio(struct folio *folio, loff_t start, loff_t end) { loff_t pos = folio_pos(folio); unsigned int offset, length, remaining; - unsigned int new_order = folio_order(folio); + unsigned int new_order; if (pos < start) offset = start - pos;
Variable new_order is being initialized with a value that is not read, the variable is being re-assigned later. Remove the initialization. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> --- mm/truncate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)