Skip to content

Commit 6db02fd

Browse files
tititiou36miquelraynal
authored andcommitted
mtd: mtdpart: Drop useless LIST_HEAD
'tmp_list' is unused, so drop it. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/547248195d87d1240d6126d13eb1364b1a0b634d.1685853690.git.christophe.jaillet@wanadoo.fr
1 parent 87194ab commit 6db02fd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/mtd/mtdpart.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ static int __mtd_del_partition(struct mtd_info *mtd)
326326
static int __del_mtd_partitions(struct mtd_info *mtd)
327327
{
328328
struct mtd_info *child, *next;
329-
LIST_HEAD(tmp_list);
330329
int ret, err = 0;
331330

332331
list_for_each_entry_safe(child, next, &mtd->partitions, part.node) {

0 commit comments

Comments
 (0)