crypto: crypto4xx - fix type mismatch compiler error

This patch fixes a type mismatch error that I accidentally
introduced when I moved and refactored the dynamic_contents
helpers.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Christian Lamparter 2017-10-04 01:00:07 +02:00 committed by Herbert Xu
parent e9b8e4e112
commit 333eb3edda

View File

@ -266,9 +266,9 @@ get_dynamic_sa_offset_state_ptr_field(struct dynamic_sa_ctl *cts)
return sizeof(struct dynamic_sa_ctl) + offset * 4;
}
static inline u8 *get_dynamic_sa_key_field(struct dynamic_sa_ctl *cts)
static inline u32 *get_dynamic_sa_key_field(struct dynamic_sa_ctl *cts)
{
return (u8 *) ((unsigned long)cts + sizeof(struct dynamic_sa_ctl));
return (u32 *) ((unsigned long)cts + sizeof(struct dynamic_sa_ctl));
}
#endif