iv is used as a little endian value, so use a __le32 type for it. Also
move the initialization into the declaration to simplify it a bit.
Signed-off-by: Christoph Hellwig <hch@lst.de>
while (size > 0) {
const int sz = min(size, LOOP_IV_SECTOR_SIZE);
- u32 iv[4] = { 0, };
- iv[0] = cpu_to_le32(IV & 0xffffffff);
+ __le32 iv[4] = { cpu_to_le32(IV & 0xffffffff), };
sg_set_page(&sg_in, in_page, sz, in_offs);
sg_set_page(&sg_out, out_page, sz, out_offs);