From: Jean Delvare Date: Mon, 27 Mar 2006 09:17:26 +0000 (-0800) Subject: [PATCH] matrox maven: memory allocation and other cleanups X-Git-Tag: v2.6.17-rc1~332 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d03c21ec0be7787ff6b75dcf56c0e96209ccbfbd;p=pandora-kernel.git [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 Acked-by: Petr Vandrovec Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed