From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.zeuux.org ([210.51.160.52] helo=z.billxu.com) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1LBhD8-0007q9-31 for linux-mtd@lists.infradead.org; Sun, 14 Dec 2008 03:00:02 +0000 Date: Sun, 14 Dec 2008 10:59:45 +0800 From: Jianjun Kong To: David Woodhouse Subject: [PATCH, resent] fs: cleanup for fs/jffs2/compr_rubin.c Message-ID: <20081214025945.GA13486@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: linux-mtd@lists.infradead.org, dwmw2@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , fs/jffs2/compr_rubin.c: remove duplicated #include and other cleanup Signed-off-by: Jianjun Kong --- 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 - 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