From patchwork Sun Sep 12 11:02:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaswinder Singh Rajput X-Patchwork-Id: 173032 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 o8CB57O7016738 for ; Sun, 12 Sep 2010 11:05:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751902Ab0ILLE3 (ORCPT ); Sun, 12 Sep 2010 07:04:29 -0400 Received: from casper.infradead.org ([85.118.1.10]:33267 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751542Ab0ILLE2 (ORCPT ); Sun, 12 Sep 2010 07:04:28 -0400 Received: from [120.56.147.194] (helo=[192.168.1.220]) by casper.infradead.org with esmtpsa (Exim 4.72 #1 (Red Hat Linux)) id 1OukME-0002ht-Am; Sun, 12 Sep 2010 11:04:27 +0000 Subject: [PATCH] Btrfs: Remove useless condition From: Jaswinder Singh Rajput To: Chris Mason , linux-btrfs@vger.kernel.org, LKML Date: Sun, 12 Sep 2010 16:32:20 +0530 Message-ID: <1284289340.2650.2.camel@ht.satnam> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 (2.30.3-1.fc13) 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]); Sun, 12 Sep 2010 11:05:07 +0000 (UTC) diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index e56c72b..7b04008 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -154,8 +154,7 @@ static inline struct rb_node *tree_search(struct btrfs_ordered_inode_tree *tree, ret = __tree_search(root, file_offset, &prev); if (!ret) ret = prev; - if (ret) - tree->last = ret; + tree->last = ret; return ret; }