提交 6523f6d2 编写于 作者: E Emilio López 提交者: Greg Kroah-Hartman

usb: storage: alauda: initialize variables directly

Clean up the code a bit to initialize the variables directly when
defining them.
Signed-off-by: NEmilio López <emilio@elopez.com.ar>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4cb4f838
......@@ -249,11 +249,7 @@ static void nand_init_ecc(void) {
/* compute 3-byte ecc on 256 bytes */
static void nand_compute_ecc(unsigned char *data, unsigned char *ecc) {
int i, j, a;
unsigned char par, bit, bits[8];
par = 0;
for (j = 0; j < 8; j++)
bits[j] = 0;
unsigned char par = 0, bit, bits[8] = {0};
/* collect 16 checksum bits */
for (i = 0; i < 256; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册