Commit 545e400619b24b6b17b7f1f1e838e9ff6d036949

Authored by Harvey Harrison
Committed by Linus Torvalds
1 parent 8b5ac31e27

lzo: use get/put_unaligned_* helpers

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff

lib/lzo/lzo1x_decompress.c
... ... @@ -138,8 +138,7 @@
138 138 t += 31 + *ip++;
139 139 }
140 140 m_pos = op - 1;
141   - m_pos -= le16_to_cpu(get_unaligned(
142   - (const unsigned short *)ip)) >> 2;
  141 + m_pos -= get_unaligned_le16(ip) >> 2;
143 142 ip += 2;
144 143 } else if (t >= 16) {
145 144 m_pos = op;
... ... @@ -157,8 +156,7 @@
157 156 }
158 157 t += 7 + *ip++;
159 158 }
160   - m_pos -= le16_to_cpu(get_unaligned(
161   - (const unsigned short *)ip)) >> 2;
  159 + m_pos -= get_unaligned_le16(ip) >> 2;
162 160 ip += 2;
163 161 if (m_pos == op)
164 162 goto eof_found;