staging: comedi: das08: Avoid zero initializers in board structure
authorIan Abbott <abbotti@mev.co.uk>
Fri, 31 Aug 2012 19:41:35 +0000 (20:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 19:00:41 +0000 (12:00 -0700)
Don't bother initializing the `i8255_offset` and/or `i8254_offset`
members of `struct das08_board_struct` in `das08_boards[]` and
`das08_cs_boards[]` if they are zero as they are implicitly initialized
to zero anyway, and zero means the corresponding subdevices are absent.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das08.c

index 8ba83690c6065d4c32ed15e6dcaf31aa835b86c2..78ee0beaa0989ebb3ac2d382a6837467314a142c 100644 (file)
@@ -524,7 +524,6 @@ static const struct das08_board_struct das08_boards[] = {
                .ai_encoding = das08_encode12,
                .di_nchan = 3,
                .do_nchan = 4,
-               .i8255_offset = 0,
                .i8254_offset = 0x04,
                .iosize = 16,           /*  unchecked */
        },
@@ -536,7 +535,6 @@ static const struct das08_board_struct das08_boards[] = {
                .ai_encoding = das08_encode12,
                .di_nchan = 3,
                .do_nchan = 4,
-               .i8255_offset = 0,
                .i8254_offset = 0x04,
                .iosize = 16,           /*  unchecked */
        },
@@ -589,8 +587,6 @@ static const struct das08_board_struct das08_boards[] = {
                .ao_nbits = 12,
                .di_nchan = 8,
                .do_nchan = 8,
-               .i8255_offset = 0,
-               .i8254_offset = 0,
                .iosize = 16,           /*  unchecked */
        },
        {
@@ -603,7 +599,6 @@ static const struct das08_board_struct das08_boards[] = {
                .ao_nbits = 16,
                .di_nchan = 8,
                .do_nchan = 8,
-               .i8255_offset = 0,
                .i8254_offset = 0x04,
                .iosize = 16,           /*  unchecked */
        },
@@ -615,7 +610,6 @@ static const struct das08_board_struct das08_boards[] = {
                .ai_encoding = das08_encode12,
                .di_nchan = 3,
                .do_nchan = 4,
-               .i8255_offset = 0,
                .i8254_offset = 4,
                .iosize = 16,           /*  unchecked */
        },
@@ -636,8 +630,6 @@ static const struct das08_board_struct das08_boards[] = {
                .ai_encoding = das08_encode16,
                .di_nchan = 8,
                .do_nchan = 8,
-               .i8255_offset = 0,
-               .i8254_offset = 0,
                .iosize = 16,           /*  unchecked */
        },
 #if 0
@@ -659,7 +651,6 @@ static const struct das08_board_struct das08_boards[] = {
                .ai_encoding = das08_encode12,
                .di_nchan = 3,
                .do_nchan = 4,
-               .i8255_offset = 0,
                .i8254_offset = 4,
                .iosize = 8,
        },
@@ -683,8 +674,6 @@ struct das08_board_struct das08_cs_boards[NUM_DAS08_CS_BOARDS] = {
                .ai_encoding = das08_pcm_encode12,
                .di_nchan = 3,
                .do_nchan = 3,
-               .i8255_offset = 0,
-               .i8254_offset = 0,
                .iosize = 16,
        },
        /*  duplicate so driver name can be used also */
@@ -697,8 +686,6 @@ struct das08_board_struct das08_cs_boards[NUM_DAS08_CS_BOARDS] = {
                .ai_encoding = das08_pcm_encode12,
                .di_nchan = 3,
                .do_nchan = 3,
-               .i8255_offset = 0,
-               .i8254_offset = 0,
                .iosize = 16,
        },
 };