aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-01-30 19:54:53 -0500
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 12:59:15 -0500
commitd1d3cd27a32b819a0b0e2b9b6b5f9e80890f9821 (patch)
tree9622f1614fe3140ede1a7e2f10aabb756a5d585f /fs
parentb4c6f7b75ce9fa3bb78af314e1841af5716bb643 (diff)
btrfs: list_entry can't return NULL
No need to test the result, we can't get a null pointer from list_entry() Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 8e58a1f90546..bd48bf21118e 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3846,8 +3846,6 @@ int btrfs_cleanup_transaction(struct btrfs_root *root)
3846 3846
3847 while (!list_empty(&list)) { 3847 while (!list_empty(&list)) {
3848 t = list_entry(list.next, struct btrfs_transaction, list); 3848 t = list_entry(list.next, struct btrfs_transaction, list);
3849 if (!t)
3850 break;
3851 3849
3852 btrfs_destroy_ordered_operations(root); 3850 btrfs_destroy_ordered_operations(root);
3853 3851