Btrfs: remove redundant code for dir item lookup
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 14 Jul 2011 03:17:52 +0000 (03:17 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:30:48 +0000 (14:30 -0400)
commit85d85a743da894029723e002eb556ceeebc03658
treefb9cc28ea108c85785ac38f92a16a60467452dd1
parent9b89d95a143bb0a9abc4ba0fdcdda78211930f1a
Btrfs: remove redundant code for dir item lookup

When we search a dir item with a specific hash code, we can
just return NULL without further checking if btrfs_search_slot()
returns 1.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/dir-item.c