qat: avoid strict-aliasing break
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Tue, 7 Jun 2016 16:58:13 +0000 (17:58 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Jun 2016 19:36:04 +0000 (21:36 +0200)
commitacc32dc9c00f5c64530f4761ea4e665ca7401c41
treed0d2d5187782a37a842c1aa12b00e469c601180e
parent577ac94c12e04a46109689d2678e88bf96050671
qat: avoid strict-aliasing break

To avoid GCC warning about "dereferencing type-punned pointer will break
strict-aliasing rules" aad_len pointer is dereferenced instead of direct
dereferencing of uint32_t* cast of the middle of an array.

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
drivers/crypto/qat/qat_adf/qat_algs_build_desc.c