From patchwork Mon Jun 24 06:26:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Sheng-Hui X-Patchwork-Id: 2768741 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6DE18C0AB1 for ; Mon, 24 Jun 2013 06:27:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A505C20108 for ; Mon, 24 Jun 2013 06:26:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB1412010B for ; Mon, 24 Jun 2013 06:26:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752175Ab3FXG0z (ORCPT ); Mon, 24 Jun 2013 02:26:55 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:55171 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752099Ab3FXG0y (ORCPT ); Mon, 24 Jun 2013 02:26:54 -0400 Received: by mail-pa0-f49.google.com with SMTP id ld11so10407587pab.8 for ; Sun, 23 Jun 2013 23:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=4YcEC/2N/zpMZ93mbOZ1wKwLwNvwEhW/g5NAimZ6nog=; b=NHZjU90TRiuTUMdHVEyu6GnqQDXuPjuX0agH1c4JI0onrUaG8HeoX2fVx5YfaLg77Q Ssi/+WydWIPpd1+kQHAqaVQ2zzXjFWGoXLPT5XJS9dHtGlNzo5IrTfHgXnY8znrlFDxp 7tBtztiTDIDEkb3iRUP1SBmt75FGv2vO7CXb8VVEa4hc4NU8diBkz39HHIfvq+VNIw3s L/aalfX48tWSeGthwSgp6Z1iFrxZfpn8WGTDJup5OW1Z4gcLg78FNDThBzkMGVjyYgli zGp/XlWqRsZzZfAJ0BoDf34LsJ/HALa6SpqiYucqi1s9E92Wn/e+Koch07/TqoCJ077G PGAA== X-Received: by 10.66.91.107 with SMTP id cd11mr26034780pab.74.1372055214161; Sun, 23 Jun 2013 23:26:54 -0700 (PDT) Received: from [9.115.120.125] ([202.108.130.138]) by mx.google.com with ESMTPSA id ka16sm18265216pad.14.2013.06.23.23.26.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Jun 2013 23:26:53 -0700 (PDT) Message-ID: <51C7E688.2020903@gmail.com> Date: Mon, 24 Jun 2013 14:26:16 +0800 From: Wang Sheng-Hui User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Josef Bacik , chris.mason@fusionio.com, linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs-progs: remove unused var *prev in extent-cache.c/find_cache_extent Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP var *prev is not used in function find_cache_extent. Remove it. Signed-off-by: Wang Sheng-Hui --- extent-cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extent-cache.c b/extent-cache.c index 3dd6434..6d86c33 100644 --- a/extent-cache.c +++ b/extent-cache.c @@ -117,10 +117,9 @@ int insert_cache_extent(struct cache_tree *tree, u64 start, u64 size) struct cache_extent *find_cache_extent(struct cache_tree *tree, u64 start, u64 size) { - struct rb_node *prev; struct rb_node *ret; struct cache_extent *entry; - ret = __tree_search(&tree->root, start, size, &prev); + ret = __tree_search(&tree->root, start, size, NULL); if (!ret) return NULL;