diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 33e9dbdd043df60a9a83c852b6f430e0526eed2a..8f3d6f893585cca6c4212468f104d7f3ff68b998 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -4914,10 +4914,8 @@ int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key, * If it is too old, old, skip to the next one. */ while (slot < nritems) { - u64 blockptr; u64 gen; - blockptr = btrfs_node_blockptr(cur, slot); gen = btrfs_node_ptr_generation(cur, slot); if (gen < min_trans) { slot++;