diff options
author | Alexandru Juncu <alexj@rosedu.org> | 2013-07-12 10:00:18 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-07-26 04:35:17 -0400 |
commit | ce01273fed085809458ca8ce078cc0c5145a3db4 (patch) | |
tree | eed32075676188266a0ec9e5140ad7a191d9bc5b | |
parent | 76e918933d8198fae49b48b4a89c92a1a0fa627f (diff) |
matroxfb: replace kmalloc and memset with kzalloc.
Signed-off-by: Alexandru Juncu <alexj@rosedu.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/matrox/matroxfb_base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c index 401a56e250bd..245652911650 100644 --- a/drivers/video/matrox/matroxfb_base.c +++ b/drivers/video/matrox/matroxfb_base.c | |||
@@ -2029,10 +2029,9 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm | |||
2029 | return -1; | 2029 | return -1; |
2030 | } | 2030 | } |
2031 | 2031 | ||
2032 | minfo = kmalloc(sizeof(*minfo), GFP_KERNEL); | 2032 | minfo = kzalloc(sizeof(*minfo), GFP_KERNEL); |
2033 | if (!minfo) | 2033 | if (!minfo) |
2034 | return -1; | 2034 | return -1; |
2035 | memset(minfo, 0, sizeof(*minfo)); | ||
2036 | 2035 | ||
2037 | minfo->pcidev = pdev; | 2036 | minfo->pcidev = pdev; |
2038 | minfo->dead = 0; | 2037 | minfo->dead = 0; |