mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
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 <cgxu519@mykernel.net> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
8d510121bf
commit
b2cd295964
1 changed files with 0 additions and 2 deletions
|
@ -437,8 +437,6 @@ void __init btrfs_props_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
hash_init(prop_handlers_ht);
|
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(prop_handlers); i++) {
|
for (i = 0; i < ARRAY_SIZE(prop_handlers); i++) {
|
||||||
struct prop_handler *p = &prop_handlers[i];
|
struct prop_handler *p = &prop_handlers[i];
|
||||||
u64 h = btrfs_name_hash(p->xattr_name, strlen(p->xattr_name));
|
u64 h = btrfs_name_hash(p->xattr_name, strlen(p->xattr_name));
|
||||||
|
|
Loading…
Add table
Reference in a new issue