]> err.no Git - linux-2.6/commitdiff
lzo: fix typo in decompressor
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 10 Apr 2008 20:38:23 +0000 (13:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Apr 2008 22:34:05 +0000 (15:34 -0700)
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>
lib/lzo/lzo1x_decompress.c

index 9dc7056e5520ff8a461cdea46258d1333de1b726..77f0f9b775a9c12ab2c1b42aaac31a0cf883e1d7 100644 (file)
@@ -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;