projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9297c6
)
serial2002: In serial_2002_open(), reduce size of config_t by 4 bytes.
author
Ian Abbott
<abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:05:09 +0000
(11:05 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/comedi/drivers/serial2002.c
b/comedi/drivers/serial2002.c
index 42841c131bc9aa9a1b09ca5f36b30df81b11295d..b0e285e8c0cf02f843af4a934ff883f9ce0a99d6 100644
(file)
--- a/
comedi/drivers/serial2002.c
+++ b/
comedi/drivers/serial2002.c
@@
-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;