Archived
14
0
Fork 0

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>
This commit is contained in:
Ian Abbott 2009-11-20 11:32:36 +00:00 committed by Greg Kroah-Hartman
parent ea25371a78
commit 67a6efb1f8

View file

@ -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;
};