From patchwork Sat Mar 20 11:26:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 87100 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2KBQbjO005525 for ; Sat, 20 Mar 2010 11:26:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752039Ab0CTL0R (ORCPT ); Sat, 20 Mar 2010 07:26:17 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:43094 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751666Ab0CTL0P (ORCPT ); Sat, 20 Mar 2010 07:26:15 -0400 Received: by bwz1 with SMTP id 1so660461bwz.21 for ; Sat, 20 Mar 2010 04:26:14 -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:cc:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=V4IrN8w0L/ieAeTOUXO7Sk15fCXidkZTpVvgtvBojno=; b=ADHu0YsIIpzCUhGjAlCgsQo+ztfgmvXnMXfYBidS6V8wFU18hZWPhBiSCHSIKG4iH3 erx1NmlpxVWRM4/8LtyTv0/c5s9GCQCLTru9vFGjr9zuFri24WzLZxhlAYRUmfMAyngo 6Fie+rXzkwCMJ/9DmgDEIOMyVF0oZ9f6fk9+w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=hMVJu3QcIoukHTuEQFIEUwiuGlTzuExk/5ZWNFnG0yfUuco7TKF4D0zAULcbBt932N 8zqf/f0AyqNhCMslsMGIGrwNQCcCDmjAOXF39aDlMnG+O6bfkm7qrAFJrdLU1MJZdnXh f0pmB0m8V9TfyuUaVgcjMYz4XLiD/j7rPu2GA= Received: by 10.204.34.206 with SMTP id m14mr843320bkd.14.1269084373954; Sat, 20 Mar 2010 04:26:13 -0700 (PDT) Received: from bicker ([196.43.68.220]) by mx.google.com with ESMTPS id 24sm9009872bkr.18.2010.03.20.04.26.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Mar 2010 04:26:13 -0700 (PDT) Date: Sat, 20 Mar 2010 14:26:05 +0300 From: Dan Carpenter To: Chris Mason Cc: Christoph Hellwig , Dan Carpenter , Venkatesh Pallipadi , =?iso-8859-1?Q?Andr=E9?= Goddard Rosa , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch 1/3] btrfs cleanup: remove dead code Message-ID: <20100320112605.GY5331@bicker> Mail-Followup-To: Dan Carpenter , Chris Mason , Christoph Hellwig , Venkatesh Pallipadi , =?iso-8859-1?Q?Andr=E9?= Goddard Rosa , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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 (demeter.kernel.org [140.211.167.41]); Sat, 20 Mar 2010 11:26:37 +0000 (UTC) diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 28d87ba..94668b1 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c @@ -335,10 +335,6 @@ struct extent_map *lookup_extent_mapping(struct extent_map_tree *tree, em = NULL; goto out; } - if (IS_ERR(rb_node)) { - em = ERR_PTR(PTR_ERR(rb_node)); - goto out; - } em = rb_entry(rb_node, struct extent_map, rb_node); if (end > em->start && start < extent_map_end(em)) goto found;