hifn_795x: fixup container_of() usage
PATCH 2/4 hifn_795x: fixup container_of() usage
[PATCH -mm 2/4] hifn_795x: fixup container_of() usage
Signed-off-by Alexey Dobriyan <[email protected]>
---
drivers/crypto/hifn_795x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/hifn_795x.c +1 -1
@@ -664,7 +664,7 @@ struct hifn_contextatomic_t sg_num; }; -#define crypto_alg_to_hifn (alg) container_of(alg, struct hifn_crypto_alg, alg) +#define crypto_alg_to_hifn (a) container_of(a, struct hifn_crypto_alg, alg)static inline u32 hifn_read_0 (struct hifn_device *dev,u32 reg) {
Hi.
Quoted 3 lines · Alexey Dobriyan
[PATCH -mm 2/4]
hifn_795x: fixupcontainer_of()usageSigned-off-by Alexey Dobriyan <[email protected]>
Well, I have no problem with the patch, although do not see any gain in it :)
I usually prefer to call members the same in container usage, since I always forget where each one should be placed.
Signature · 1 line
Evgeniy Polyakov
Herbert Xu
maintainerQuoted 3 lines · Alexey Dobriyan
[PATCH -mm 2/4]
hifn_795x: fixupcontainer_of()usageSigned-off-by Alexey Dobriyan <[email protected]>
Patch applied. Thanks.
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt