Skip to contentSkip to conversation

drivers\char\pcmcia\synclink_cs.c

KJ Christophe Jaillet 2 participants 2 messages Nov 25, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw
In file :            \drivers\char\pcmcia\synclink_cs.c
In function :    line_info(char *buf, MGSLPC_INFO *info)

The buffer *stat_buf* could be defined smaller.

It is used to build a string that can not be longer than "|RTS|CTS|DTR|DSR|CD|RI", that is to say 21 + 1 chars so :

     char stat_buf[22];
instead of
    char stat_buf[30];

would be enough and would save a few bytes on the stack.

CJ

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors