summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2009-11-20 11:32:36 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 12:23:04 -0800
commit67a6efb1f86eb51e4b702c4e8e735ca24e3427d8 (patch)
treefbb1f57d9bdea6b8c7807dfc74d74b1f34d773b3
parentea25371a78c33e276527361d3ab19393d558b2fd (diff)
Staging: comedi: serial2002: decrease stack usage
512 bytes of stack can be saved in serial_2002_open() by modifying 'struct config_t'. A short int suffices for the 'kind' and 'bits' members. (Actually, a char would suffice, but wouldn't save any more stack than a short int.) Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/serial2002.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c
index e7c13eba983b..db37dcdd98b6 100644
--- a/drivers/staging/comedi/drivers/serial2002.c
+++ b/drivers/staging/comedi/drivers/serial2002.c
@@ -404,8 +404,8 @@ static void serial_2002_open(struct comedi_device *dev)
} else {
struct config_t {
- int kind;
- int bits;
+ short int kind;
+ short int bits;
int min;
int max;
};