Skip to contentSkip to conversation

hifn_795x: fixup container_of() usage

PATCH In review Alexey Dobriyan 3 participants 3 messages Jan 8, 2008 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 hifn_795x: fixup container_of() usage

[PATCH -mm 2/4] hifn_795x: fixup container_of() usage

---

 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_context
 	atomic_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)
 {
#1 lore raw

Hi.

Quoted 3 lines · Alexey Dobriyan

[PATCH -mm 2/4] hifn_795x: fixup container_of() usage

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