Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 545e4006 authored by Harvey Harrison's avatar Harvey Harrison Committed by Linus Torvalds
Browse files

lzo: use get/put_unaligned_* helpers

parent 8b5ac31e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -138,8 +138,7 @@ int lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
					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 @@ int lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
					}
					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;