Skip to content

Commit

Permalink
btrfs: list_entry can't return NULL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sandeen authored and Josef Bacik committed Feb 20, 2013
1 parent b4c6f7b commit d1d3cd2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3846,8 +3846,6 @@ int btrfs_cleanup_transaction(struct btrfs_root *root)

while (!list_empty(&list)) {
t = list_entry(list.next, struct btrfs_transaction, list);
if (!t)
break;

btrfs_destroy_ordered_operations(root);

Expand Down

0 comments on commit d1d3cd2

Please sign in to comment.