Skip to content

Commit

Permalink
usb: storage: alauda: initialize variables directly
Browse files Browse the repository at this point in the history
Clean up the code a bit to initialize the variables directly when
defining them.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Emilio López authored and Greg Kroah-Hartman committed May 17, 2013
1 parent 4cb4f83 commit 6523f6d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/usb/storage/alauda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 6523f6d

Please sign in to comment.