mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 15:42:46 +00:00
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>
This commit is contained in:
parent
b4c6f7b75c
commit
d1d3cd27a3
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue