diff options
author | NeilBrown <neilb@suse.com> | 2018-06-18 05:52:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-22 07:43:27 +0300 |
commit | 9b4f64a227b6f462482a8cc68c7134dc6e26f1c1 (patch) | |
tree | a293398f90708f23202e5ae6497a45cdfc6d71f9 /include/linux/rhashtable.h | |
parent | 9f9a707738aa7a8b9f78a641b83927ada256a626 (diff) | |
download | linux-9b4f64a227b6f462482a8cc68c7134dc6e26f1c1.tar.xz |
rhashtable: simplify INIT_RHT_NULLS_HEAD()
The 'ht' and 'hash' arguments to INIT_RHT_NULLS_HEAD() are
no longer used - so drop them. This allows us to also
remove the nhash argument from nested_table_alloc().
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rhashtable.h')
-rw-r--r-- | include/linux/rhashtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h index d9f719af7936..3f3a182bd0b4 100644 --- a/include/linux/rhashtable.h +++ b/include/linux/rhashtable.h @@ -75,7 +75,7 @@ struct bucket_table { struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; }; -#define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ +#define INIT_RHT_NULLS_HEAD(ptr) \ ((ptr) = (typeof(ptr)) NULLS_MARKER(0)) static inline bool rht_is_a_nulls(const struct rhash_head *ptr) |