From: Eric Sandeen Date: Thu, 31 Jan 2013 00:54:53 +0000 (+0000) Subject: btrfs: list_entry can't return NULL X-Git-Tag: v3.9-rc1~4^2~30^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1d3cd27a32b819a0b0e2b9b6b5f9e80890f9821;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 8e58a1f..bd48bf2 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) while (!list_empty(&list)) { t = list_entry(list.next, struct btrfs_transaction, list); - if (!t) - break; btrfs_destroy_ordered_operations(root);