login
Header Space

 
 

[PATCH] lzo: fix possible typo in decompresor

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Richard Purdie <rpurdie@...>
Cc: Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>, LKML <linux-kernel@...>
Date: Thursday, April 10, 2008 - 4:38 pm

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>
---
 lib/lzo/lzo1x_decompress.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/lzo/lzo1x_decompress.c b/lib/lzo/lzo1x_decompress.c
index 9dc7056..77f0f9b 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;
-- 
1.5.5.144.g3e42



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] lzo: fix possible typo in decompresor, Harvey Harrison, (Thu Apr 10, 4:38 pm)
Re: [PATCH] lzo: fix possible typo in decompresor, Linus Torvalds, (Thu Apr 10, 4:49 pm)
Re: [PATCH] lzo: fix possible typo in decompresor, Richard Purdie, (Thu Apr 10, 6:18 pm)
Re: [PATCH] lzo: fix possible typo in decompresor, Harvey Harrison, (Thu Apr 10, 6:22 pm)
Re: [PATCH] lzo: fix possible typo in decompresor, Harvey Harrison, (Thu Apr 10, 4:52 pm)
speck-geostationary