mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
lzo: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <[email protected]> Acked-by: Richard Purdie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8b5ac31e27
commit
545e400619
1 changed files with 2 additions and 4 deletions
|
|
@ -138,8 +138,7 @@ match:
|
|||
t += 31 + *ip++;
|
||||
}
|
||||
m_pos = op - 1;
|
||||
m_pos -= le16_to_cpu(get_unaligned(
|
||||
(const unsigned short *)ip)) >> 2;
|
||||
m_pos -= get_unaligned_le16(ip) >> 2;
|
||||
ip += 2;
|
||||
} else if (t >= 16) {
|
||||
m_pos = op;
|
||||
|
|
@ -157,8 +156,7 @@ match:
|
|||
}
|
||||
t += 7 + *ip++;
|
||||
}
|
||||
m_pos -= le16_to_cpu(get_unaligned(
|
||||
(const unsigned short *)ip)) >> 2;
|
||||
m_pos -= get_unaligned_le16(ip) >> 2;
|
||||
ip += 2;
|
||||
if (m_pos == op)
|
||||
goto eof_found;
|
||||
|
|
|
|||
Loading…
Reference in a new issue