]> Git Repo - J-linux.git/commitdiff
xfs: xfs_fsops: drop useless LIST_HEAD
authorJulia Lawall <[email protected]>
Sun, 23 Dec 2018 22:52:12 +0000 (14:52 -0800)
committerDarrick J. Wong <[email protected]>
Sat, 29 Dec 2018 18:47:58 +0000 (10:47 -0800)
Drop LIST_HEAD where the variable it declares is never used.

Commit 0410c3bb2b88 ("xfs: factor ag btree root block
initialisation") stopped using buffer_list and started using a
buffer list in an aghdr_init_data structure, but the declaration
of buffer_list was not removed.

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

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

Fixes: 0410c3bb2b88 ("xfs: factor ag btree root block initialisation")
Signed-off-by: Julia Lawall <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
fs/xfs/xfs_fsops.c

index ec2e63a7963b2676ba0f542f8fad1dec7acdf44e..f3ef70c542e1bc3392b391fefe904b787a0920a5 100644 (file)
@@ -40,7 +40,6 @@ xfs_growfs_data_private(
        xfs_rfsblock_t          new;
        xfs_agnumber_t          oagcount;
        xfs_trans_t             *tp;
-       LIST_HEAD               (buffer_list);
        struct aghdr_init_data  id = {};
 
        nb = in->newblocks;
This page took 0.051805 seconds and 4 git commands to generate.