From patchwork Fri Sep 10 14:42:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Morales II X-Patchwork-Id: 169072 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 o8AEgsj7009197 for ; Fri, 10 Sep 2010 14:42:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753053Ab0IJOmP (ORCPT ); Fri, 10 Sep 2010 10:42:15 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:64985 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752908Ab0IJOmL (ORCPT ); Fri, 10 Sep 2010 10:42:11 -0400 Received: by fxm16 with SMTP id 16so1751771fxm.19 for ; Fri, 10 Sep 2010 07:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=cqTW3U641hxV5OPh1n4t+CL35CfUj2HMwTE6sg+XQ40=; b=rRRUxU27sJyjTW/nC7NQQcQBPNIcP4fBFd33NVY9W63FKk7rZ1CYhdfuE6RBcttKdy tAaUZK9ky5bXUFQmaULvtqBIJyYI7/YGG6F5Q6hL3/8zqs7BdHYvcps5VXc87c0n8cj1 aTS4qmFK7rpNOZX3aiF6B6w5jp4HFy7RysSeA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=JzoJYwo1vXkNQiNm4SvfdNIk2t3qt4QoGVGsYiqbLGSfO81TGxC8jjCkhFF1mRTNdk TYtF0feZdEcyxMbdeCj0yP6BwEe3nJPE4Gv4lsqUJHyha/Nz+0AtVo+JVhw3mVueG7Yo HiypvMtrjS4dPyKypUtk3KyPpqNh/aKVV/8Sk= Received: by 10.223.108.19 with SMTP id d19mr67311fap.11.1284129729924; Fri, 10 Sep 2010 07:42:09 -0700 (PDT) Received: from [192.168.1.100] (c-67-160-151-219.hsd1.wa.comcast.net [67.160.151.219]) by mx.google.com with ESMTPS id d15sm2837452faa.1.2010.09.10.07.42.06 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 07:42:08 -0700 (PDT) Subject: [PATCH] fs/btrfs/ordered-data.c: fixed compiler warnings for using uninitialized variable From: Frank Morales II To: chris.mason@oracle.com, josef@redhat.com, zheng.yan@oracle.com, jens.axboe@oracle.com, tj@kernel.org Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 10 Sep 2010 07:42:04 -0700 Message-ID: <1284129724.23418.27.camel@ubuntu1004pl> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 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]); Fri, 10 Sep 2010 14:42:55 +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;