From: Chengguang Xu Date: Thu, 10 Oct 2019 07:59:56 +0000 (+0800) Subject: btrfs: props: remove unnecessary hash_init() X-Git-Tag: Ubuntu-5.13.0-19.19~7288^2~86 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b2cd29596469f16e2a56bcd59d6cbf7f7652131f;p=mirror_ubuntu-jammy-kernel.git btrfs: props: remove unnecessary hash_init() 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c index aac596300c89..deb59e7cfcac 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));