netfilter: nft_hash: indent rhashtable parameters
authorPatrick McHardy <kaber@trash.net>
Wed, 25 Mar 2015 13:07:47 +0000 (13:07 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Mar 2015 16:18:34 +0000 (17:18 +0100)
Improve readability by indenting the parameter initialization.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_hash.c

index a517f84e9a21e46fc9a3450aa15053fdc9c11edb..e35f0b2d8e65809bfd9833b0d205d04469f0b1d6 100644 (file)
@@ -173,10 +173,10 @@ static unsigned int nft_hash_privsize(const struct nlattr * const nla[])
 }
 
 static const struct rhashtable_params nft_hash_params = {
-       .head_offset = offsetof(struct nft_hash_elem, node),
-       .key_offset = offsetof(struct nft_hash_elem, key),
-       .hashfn = jhash,
-       .automatic_shrinking = true,
+       .head_offset            = offsetof(struct nft_hash_elem, node),
+       .key_offset             = offsetof(struct nft_hash_elem, key),
+       .hashfn                 = jhash,
+       .automatic_shrinking    = true,
 };
 
 static int nft_hash_init(const struct nft_set *set,
@@ -187,7 +187,7 @@ static int nft_hash_init(const struct nft_set *set,
        struct rhashtable_params params = nft_hash_params;
 
        params.nelem_hint = desc->size ?: NFT_HASH_ELEMENT_HINT;
-       params.key_len = set->klen;
+       params.key_len    = set->klen;
 
        return rhashtable_init(&priv->ht, &params);
 }