Skip to content
Commit 85d85a74 authored by Li Zefan's avatar Li Zefan Committed by Chris Mason
Browse files

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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 9b89d95a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment