]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Char: mxser_new, kill unneeded memsets
authorJiri Slaby <jirislaby@gmail.com>
Fri, 8 Dec 2006 10:38:17 +0000 (02:38 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:53 +0000 (08:28 -0800)
commit06cc86b5bd4edcf5e7d68624f7d5c9951916f3d1
tree3e6069bdfc681ca2e240c71129a0b56c933831f3
parent7a7a5c3303a66c9000f270d6dd03ddeda8c80768
[PATCH] Char: mxser_new, kill unneeded memsets

mxser_new, kill unneeded memsets

There is no need to re-zero static global variables' memory, hence memsets
doing this are useless.  alloc_tty_struct also zeroes allocated memory:
another candidate for removing.

This fixes also a bug -- global structures are cleaned up after
initialization of some its parts.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/mxser_new.c