DEFINE_HASHTABLE itself has already included initialization code, we don't have to call hash_init() again, so remove it.
Signed-off-by: Chengguang Xu <[email protected]> --- v1->v2: - Modify change log to explain why hash_init() is not needed. fs/btrfs/props.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c index 1e664e0b59b8..68508db3dc65 100644 --- a/fs/btrfs/props.c +++ b/fs/btrfs/props.c @@ -437,8 +437,6 @@ void __init btrfs_props_init(void) { int i; - hash_init(prop_handlers_ht); - for (i = 0; i < ARRAY_SIZE(prop_handlers); i++) { struct prop_handler *p = &prop_handlers[i]; u64 h = btrfs_name_hash(p->xattr_name, strlen(p->xattr_name)); -- 2.20.1
