serial2002: In serial_2002_open(), reduce size of config_t by 4 bytes.
authorIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:05:09 +0000 (11:05 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:05:09 +0000 (11:05 +0000)
This reduces stack usage by 512 bytes.

comedi/drivers/serial2002.c

index 42841c131bc9aa9a1b09ca5f36b30df81b11295d..b0e285e8c0cf02f843af4a934ff883f9ce0a99d6 100644 (file)
@@ -401,8 +401,8 @@ static void serial_2002_open(comedi_device * dev)
                        PTR_ERR(devpriv->tty));
        } else {
                typedef struct {
-                       int kind;
-                       int bits;
+                       short int kind;
+                       short int bits;
                        int min;
                        int max;
                } config_t;