* [PATCH, resent] fs: cleanup for fs/jffs2/compr_rubin.c
@ 2008-12-14 2:59 Jianjun Kong
0 siblings, 0 replies; only message in thread
From: Jianjun Kong @ 2008-12-14 2:59 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd, dwmw2
fs/jffs2/compr_rubin.c:
remove duplicated #include and other cleanup
Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
---
fs/jffs2/compr_rubin.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/jffs2/compr_rubin.c b/fs/jffs2/compr_rubin.c
index c73fa89..35f1652 100644
--- a/fs/jffs2/compr_rubin.c
+++ b/fs/jffs2/compr_rubin.c
@@ -24,8 +24,6 @@
#define BIT_DIVIDER_MIPS 1043
static int bits_mips[8] = { 277,249,290,267,229,341,212,241}; /* mips32 */
-#include <linux/errno.h>
-
struct pushpull {
unsigned char *buf;
unsigned int buflen;
@@ -157,7 +155,8 @@ static void init_decode(struct rubin_state *rs, int div, int *bits)
/* behalve lower */
rs->rec_q = 0;
- for (rs->bit_number = 0; rs->bit_number++ < RUBIN_REG_SIZE; rs->rec_q = rs->rec_q * 2 + (long) (pullbit(&rs->pp)))
+ for (rs->bit_number = 0; rs->bit_number++ < RUBIN_REG_SIZE;
+ rs->rec_q = rs->rec_q * 2 + (long) (pullbit(&rs->pp)))
;
}
@@ -241,7 +240,7 @@ static int out_byte(struct rubin_state *rs, unsigned char byte)
*rs = rs_copy;
return ret;
}
- byte=byte>>1;
+ byte >>= 1;
}
return 0;
}
--
1.5.6.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-14 3:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-14 2:59 [PATCH, resent] fs: cleanup for fs/jffs2/compr_rubin.c Jianjun Kong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox