All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] drivers\char\pcmcia\synclink_cs.c
@ 2005-11-25 20:43 Christophe Jaillet
  2005-11-25 21:33 ` Nish Aravamudan
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Jaillet @ 2005-11-25 20:43 UTC (permalink / raw)
  To: kernel-janitors


[-- Attachment #1.1: Type: text/plain, Size: 416 bytes --]

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



[-- Attachment #1.2: Type: text/html, Size: 1419 bytes --]

[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [KJ] drivers\char\pcmcia\synclink_cs.c
  2005-11-25 20:43 [KJ] drivers\char\pcmcia\synclink_cs.c Christophe Jaillet
@ 2005-11-25 21:33 ` Nish Aravamudan
  0 siblings, 0 replies; 2+ messages in thread
From: Nish Aravamudan @ 2005-11-25 21:33 UTC (permalink / raw)
  To: kernel-janitors

On 11/25/05, Christophe Jaillet <christophe.jaillet@wanadoo.fr> wrote:
>
> 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.

Where's the patch?

Thanks,
Nish

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-25 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-25 20:43 [KJ] drivers\char\pcmcia\synclink_cs.c Christophe Jaillet
2005-11-25 21:33 ` Nish Aravamudan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.