提交 67a6efb1 编写于 作者: I Ian Abbott 提交者: Greg Kroah-Hartman

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: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ea25371a
无相关合并请求
......@@ -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;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部