From: Ian Abbott Date: Fri, 20 Nov 2009 11:32:36 +0000 (+0000) Subject: Staging: comedi: serial2002: decrease stack usage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67a6efb1f86eb51e4b702c4e8e735ca24e3427d8;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c index e7c13eba983..db37dcdd98b 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; };