From patchwork Thu Jan 7 15:25:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 71595 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o07FQGCI024260 for ; Thu, 7 Jan 2010 15:26:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752864Ab0AGP0P (ORCPT ); Thu, 7 Jan 2010 10:26:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752745Ab0AGP0P (ORCPT ); Thu, 7 Jan 2010 10:26:15 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:60432 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783Ab0AGP0O (ORCPT ); Thu, 7 Jan 2010 10:26:14 -0500 Received: by bwz27 with SMTP id 27so11481575bwz.21 for ; Thu, 07 Jan 2010 07:26:13 -0800 (PST) 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:mime-version:content-type:content-disposition:user-agent; bh=Cfg95h8eHOouDps/uwHvLzttcN/mycE1XfN6TzaNr6w=; b=aqII6TskKM6b3yoFQDagZqvESxh1sIt6bQB7V+AXi7Ctuxdyjjt2VgWXjgwZkeAYF4 akNDET8lNkN5iLzFl9Kz8R3MvT3T7kctSaxHvGSioqnqAGhF4Kq3Ujn/bYuOYQv4boDg eqMlzXhBwLu7R0Xyu92tdUEbSgrlwcWPsoypE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=dCnXfcbS/mJ0lbN3AR3MapEvqAMYmEQQeKjSpHYN0M7Z4V79b5DIA5yFT/FNveMqGD uxT74Fkbar9YvyHdvoj1sauAnx6XFsig8IlYP0gkEXFj+m0Tuv5Rdh3R/zkQzf9xgOGB +mie6jnKtkHDZRPS1WO8yvrTLl5WWwYHN5D/Y= Received: by 10.204.24.71 with SMTP id u7mr2514814bkb.35.1262877972481; Thu, 07 Jan 2010 07:26:12 -0800 (PST) Received: from bicker ([196.202.213.89]) by mx.google.com with ESMTPS id 14sm829828bwz.5.2010.01.07.07.26.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Jan 2010 07:26:11 -0800 (PST) Date: Thu, 7 Jan 2010 18:25:44 +0300 From: Dan Carpenter To: Chris Mason Cc: linux-btrfs@vger.kernel.org Subject: [patch] btrfs: remove dead code Message-ID: <20100107152544.GC8134@bicker> 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 --- orig/fs/btrfs/extent_map.c 2010-01-07 10:50:30.000000000 +0300 +++ devel/fs/btrfs/extent_map.c 2010-01-07 10:50:40.000000000 +0300 @@ -349,10 +349,6 @@ struct extent_map *lookup_extent_mapping 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;