Message ID | 547248195d87d1240d6126d13eb1364b1a0b634d.1685853690.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1974504vqr; Sat, 3 Jun 2023 21:53:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Hmpty77WrSTWNX2NkmCjuTiVK+A3hGBjPfp7dwZaZv9VnQWAWuw13A8n2T6fAeSiCfIg6 X-Received: by 2002:a5e:8907:0:b0:766:48cf:6ca9 with SMTP id k7-20020a5e8907000000b0076648cf6ca9mr9223954ioj.12.1685854404599; Sat, 03 Jun 2023 21:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685854404; cv=none; d=google.com; s=arc-20160816; b=Pu+Mna+ia/EA11ekG84O77K6Z9PqjXSbmBYQlnHXQDBL7K5ISJKqYZXeGihpdsOgO3 l+ip1hvPbE6xNDfQx9H1ki2j5Im1FbSsLbEk67/nPNloesfcHijRD3ntYxbrvdAwJx+c BWC8sg+M2zDIN/DUEP7Xfm/4fu/25iyUxk1B9LULFmUHE6mkMGOlMb7jS/cP1WNGV/hv BuHR8lAaX7c/BEyBDkuMeHK1hIXiycpE2miwtpJkzHOdOZeuqHcU7T/c1cjH7y3203N0 BB7/VDPebOjznX3CgM9K0+5YNXFS/WPE52ImfB2GhraVjxf1NeeyBAc0n/UphfyYbiPP CErQ== 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=/V3bb2t3S9ERy4bkX7WFDcRfY60GVE2pPffF3L5h38c=; b=OQgbW754R94e4elBuZEeak9fBk4r6jz/iuZU20dHriiwUIidEDwJeik5XPOGeVxqgJ NB6OF/CXfNpY1Dg5bpFm/3ZrPIijM6rzSNy7a24Gv/ZJVorTXNgc0nhHhd+bHEdTuJtn OWjX3Nh9bP8L878ILJizBETSo3TRAOzQHPUM26qrKq/KX9VXcT9W7bQ3ma6bcySvYOqN wNJgkcu+2ItCt+4PvNLx6uiJ2VMKE6XFtKAum/ZanWep+sRL+Ks73lojYWtBaCZYU81i wIep6nmKvnNlvLAeyTDUfgqBhrMaxA41PeZJQ9atghclS3wkCT/ZD7Z8KwaTwERtj54s 7kHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=CfFUQY2t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e62-20020a636941000000b0053f955eda7csi3519710pgc.559.2023.06.03.21.53.07; Sat, 03 Jun 2023 21:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=CfFUQY2t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbjFDEmI (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Sun, 4 Jun 2023 00:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjFDEmH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 4 Jun 2023 00:42:07 -0400 Received: from smtp.smtpout.orange.fr (smtp-26.smtpout.orange.fr [80.12.242.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF77AD3 for <linux-kernel@vger.kernel.org>; Sat, 3 Jun 2023 21:42:05 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id 5fZ4q5cPPbOsk5fZ4qqpwK; Sun, 04 Jun 2023 06:42:03 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1685853723; bh=/V3bb2t3S9ERy4bkX7WFDcRfY60GVE2pPffF3L5h38c=; h=From:To:Cc:Subject:Date; b=CfFUQY2teH7AsnaLHJL4lU6kx8XHXzOginGc3EugTHKqGjSBqn6frzcO2Ow4Oxq5N u+MrEJcvu5TLU8KvNlRI/F3YR22pjozCHyQyF7xGZgy52CFqWTzLfrcdyxsTlAwewu rfJ8QFZmH3oKkgsOkBkrcjBS3qE++cL9UuFQ9nO51UaoVxGio2Sgw483VEWPQRxOuC bvQxV2Hp8AOU8SGgAiozPUWTIw71aYBGBU5NKp4PmDGK/Ww3de9LxfiKdklRNSvPnJ kM4B2ySerIGcJl3bt02cQhgLgXdNyAAjF0WTA+KcU+0p40cqUyS+0JRIeSEQcpd0xt 0Cf2NTYAD05Gw== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 04 Jun 2023 06:42:03 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, linux-mtd@lists.infradead.org Subject: [PATCH] mtd: mtdpart: Drop useless LIST_HEAD Date: Sun, 4 Jun 2023 06:42:01 +0200 Message-Id: <547248195d87d1240d6126d13eb1364b1a0b634d.1685853690.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767746467891330490?= X-GMAIL-MSGID: =?utf-8?q?1767746467891330490?= |
Series |
mtd: mtdpart: Drop useless LIST_HEAD
|
|
Commit Message
Christophe JAILLET
June 4, 2023, 4:42 a.m. UTC
'tmp_list' is unused, so drop it.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
This was introduced in commit 46b5889cc2c5 ("mtd: implement proper partition handling")
---
drivers/mtd/mtdpart.c | 1 -
1 file changed, 1 deletion(-)
Comments
On Sun, 2023-06-04 at 04:42:01 UTC, Christophe JAILLET wrote: > 'tmp_list' is unused, so drop it. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 85f5ee6f06fc..a46affbb037d 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c @@ -326,7 +326,6 @@ static int __mtd_del_partition(struct mtd_info *mtd) static int __del_mtd_partitions(struct mtd_info *mtd) { struct mtd_info *child, *next; - LIST_HEAD(tmp_list); int ret, err = 0; list_for_each_entry_safe(child, next, &mtd->partitions, part.node) {