]> err.no Git - linux-2.6/commit
[PATCH] matrox maven: memory allocation and other cleanups
authorJean Delvare <khali@linux-fr.org>
Mon, 27 Mar 2006 09:17:26 +0000 (01:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:55 +0000 (08:44 -0800)
commitd03c21ec0be7787ff6b75dcf56c0e96209ccbfbd
tree6d067fc95498f89a297f6bd390c8191f57ab9aeb
parent756e21a022aba5214bafcf803f114aed8a783b99
[PATCH] matrox maven: memory allocation and other cleanups

A few cleanups which were done to almost all i2c drivers some times
ago, but matroxfb_maven was forgotten:

* Don't allocate two different structures at once.
* Use kzalloc instead of kmalloc+memset.
* Use strlcpy instead of strcpy.
* Drop duplicate error message on client deregistration failure.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/matrox/matroxfb_maven.c