]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: drop useless LIST_HEAD in merge_reloc_root
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 23 Dec 2018 08:57:06 +0000 (09:57 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:15 +0000 (14:13 +0100)
commitb893d272409ba0b1844e7df0258b803c9204b364
treebfe9939ef94eebf21deca4d614a52f2c55b2825e
parent15c2188843df926fb44b63ddad8a62a332207018
Btrfs: drop useless LIST_HEAD in merge_reloc_root

Drop LIST_HEAD where the variable it declares is never used.

The uses were removed in f38b76d2c860 ("Btrfs: Metadata ENOSPC
handling for balance"), but not the declaration.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier x;
@@
- LIST_HEAD(x);
  ... when != x
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c