From: Colin Ian King Date: Tue, 28 Aug 2018 10:45:21 +0000 (+0100) Subject: btrfs: remove unused pointer inode in relink_file_extents X-Git-Tag: v5.15~7486^2~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d005dbeca0814551ed243fc2d51480d0cd925d67;p=platform%2Fkernel%2Flinux-starfive.git btrfs: remove unused pointer inode in relink_file_extents Pointer inode is being assigned but is never used hence it is redundant and can be removed. It's been unused since the introduction in 38c227d87c49a ("Btrfs: snapshot-aware defrag"). Cleans up clang warning: variable ‘inode’ set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index f2ce88d65f90..56e523774049 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2750,12 +2750,9 @@ static void relink_file_extents(struct new_sa_defrag_extent *new) struct btrfs_path *path; struct sa_defrag_extent_backref *backref; struct sa_defrag_extent_backref *prev = NULL; - struct inode *inode; struct rb_node *node; int ret; - inode = new->inode; - path = btrfs_alloc_path(); if (!path) return;