aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvme16x_scsi.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-11 04:13:24 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:41:00 -0400
commitbbfbbbc1182f8b44c8cc4c99f4a3f3a512149022 (patch)
treef7e3d50cda2e3d55bff88c2cc617d60df8ddb2cb /drivers/scsi/mvme16x_scsi.c
parentf36789e22ac32a6554b8e4d05ab6125fc1161745 (diff)
[SCSI] kmalloc + memset conversion to kzalloc
In NCR_D700, a4000t, aic7xxx_old, bvme6000, dpt_i2o, gdth, lpfc, megaraid, mvme16x osst, pluto, qla2xxx, zorro7xx Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/mvme16x_scsi.c')
-rw-r--r--drivers/scsi/mvme16x_scsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/mvme16x_scsi.c b/drivers/scsi/mvme16x_scsi.c
index 1bdddad48571..b264b499d982 100644
--- a/drivers/scsi/mvme16x_scsi.c
+++ b/drivers/scsi/mvme16x_scsi.c
@@ -48,13 +48,12 @@ mvme16x_probe(struct device *dev)
48 goto out; 48 goto out;
49 } 49 }
50 50
51 hostdata = kmalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); 51 hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL);
52 if (hostdata == NULL) { 52 if (hostdata == NULL) {
53 printk(KERN_ERR "mvme16x-scsi: " 53 printk(KERN_ERR "mvme16x-scsi: "
54 "Failed to allocate host data\n"); 54 "Failed to allocate host data\n");
55 goto out; 55 goto out;
56 } 56 }
57 memset(hostdata, 0, sizeof(struct NCR_700_Host_Parameters));
58 57
59 /* Fill in the required pieces of hostdata */ 58 /* Fill in the required pieces of hostdata */
60 hostdata->base = (void __iomem *)0xfff47000UL; 59 hostdata->base = (void __iomem *)0xfff47000UL;