summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-10 22:38:23 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-11 00:34:05 +0200
commita1e58bbdc969c3fe60addca7f2729779d22a83c1 (patch)
treec8b94e446e4e4298be6c43d0fbff94ed6e60c030
parentFRV: Don't make smp_{r, w, }mb() interpolate MEMBAR when CONFIG_SMP=n [try #2] (diff)
downloadlinux-a1e58bbdc969c3fe60addca7f2729779d22a83c1.tar.xz
linux-a1e58bbdc969c3fe60addca7f2729779d22a83c1.zip
lzo: fix typo in decompressor
Shift of a LE value seems strange, probably meant to shift the cpu-order variable as in the prvious section of the switch statement. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--lib/lzo/lzo1x_decompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lzo/lzo1x_decompress.c b/lib/lzo/lzo1x_decompress.c
index 9dc7056e5520..77f0f9b775a9 100644
--- a/lib/lzo/lzo1x_decompress.c
+++ b/lib/lzo/lzo1x_decompress.c
@@ -158,7 +158,7 @@ match:
t += 7 + *ip++;
}
m_pos -= le16_to_cpu(get_unaligned(
- (const unsigned short *)ip) >> 2);
+ (const unsigned short *)ip)) >> 2;
ip += 2;
if (m_pos == op)
goto eof_found;