From patchwork Sat Sep 11 06:10:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?J=CE=B5an_Sacren?= X-Patchwork-Id: 171332 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8B6ARud022357 for ; Sat, 11 Sep 2010 06:10:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320Ab0IKGKZ (ORCPT ); Sat, 11 Sep 2010 02:10:25 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:48591 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752190Ab0IKGKY (ORCPT ); Sat, 11 Sep 2010 02:10:24 -0400 Received: by pxi10 with SMTP id 10so1288020pxi.19 for ; Fri, 10 Sep 2010 23:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition :in-reply-to; bh=5s8xSEf2Ojf9BcnRknFGNgD3Jyp1nzGJBZk4S3zZwMM=; b=qarvTlZSNJ4lSsVjmA1iivCvKomyM0plIK0uPevJ+nQGo7l6tuuRwiR3LwYkair7X+ w9mZTnFmXwyV8w9s7m4T1D0sZ8QQu2s9pXm8NWoVudJ/Obn/XuSZ69Omj45q5/vOOodd S+6nztiQ00TsVMbojqnPGezHSGfyw/UtOxK14= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:in-reply-to; b=iZCFMWaZ4dndfaT7gWBcrwjo6bBWt2ENhBc/akI5NMSIdzlbXmFN5dkya4roPrTsqo H5fp2Kdk0memMIPmHJGuZSz3CFnUdbcpTFVqZc3pmD5yzt0RfjYI3pkafDayh/uSnOfD BpidHPR4wI97LYcj+qUsCf3Z/uJgMfWoBfHXs= Received: by 10.114.37.2 with SMTP id k2mr2137088wak.41.1284185424277; Fri, 10 Sep 2010 23:10:24 -0700 (PDT) Received: from localhost ([65.181.55.156]) by mx.google.com with ESMTPS id d38sm6116172wam.20.2010.09.10.23.10.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 23:10:23 -0700 (PDT) Date: Sat, 11 Sep 2010 00:10:23 -0600 From: Jean Sacren To: Linux BTRFS Filesystem Discussion Subject: [PATCH 1/1] btrfs: Fix warning: 'prev' may be used uninitialized in this function Message-ID: <20100911061023.GA18545@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100911060848.GA18516@mail.gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 11 Sep 2010 06:10:27 +0000 (UTC) diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index e56c72b..fad2616 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -141,7 +141,7 @@ static inline struct rb_node *tree_search(struct btrfs_ordered_inode_tree *tree, u64 file_offset) { struct rb_root *root = &tree->tree; - struct rb_node *prev; + struct rb_node *prev = NULL; struct rb_node *ret; struct btrfs_ordered_extent *entry;