From: Byongho Lee Date: Tue, 1 Sep 2015 14:36:28 +0000 (+0900) Subject: btrfs: remove unnecessary list_del X-Git-Tag: v4.4-rc1~82^2~37^2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=568b1c9cca82623af764ee6ea65dc41a7079171c;p=karo-tx-linux.git btrfs: remove unnecessary list_del We can safely iterate whole list items, without using list_del macro. So remove the list_del call. Reviewed-by: David Sterba Signed-off-by: Byongho Lee Signed-off-by: David Sterba --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index dc3a9fc8fc05..c4a97dc14378 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2599,7 +2599,6 @@ static void free_sa_defrag_extent(struct new_sa_defrag_extent *new) return; list_for_each_entry_safe(old, tmp, &new->head, list) { - list_del(&old->list); kfree(old); } kfree(new);