diff options
author | Tejun Heo <htejun@gmail.com> | 2006-03-05 08:03:52 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-05 08:39:55 +0100 |
commit | 9a5314432a07251c2a8d71bfc793adcf00f4122e (patch) | |
tree | b5becc8c3cf7bfb60200bdeb344a6cfc509e9fcf /drivers/scsi/sata_sil.c | |
parent | [PATCH] sata_sil: replace sil_3112_m15w board id with sil_3112 (diff) | |
download | linux-9a5314432a07251c2a8d71bfc793adcf00f4122e.tar.xz linux-9a5314432a07251c2a8d71bfc793adcf00f4122e.zip |
[PATCH] sata_sil: use kzalloc
Use kzalloc instead of kmalloc/memset.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/sata_sil.c')
-rw-r--r-- | drivers/scsi/sata_sil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/sata_sil.c b/drivers/scsi/sata_sil.c index 8cb662d537a3..5cdcb9db3e71 100644 --- a/drivers/scsi/sata_sil.c +++ b/drivers/scsi/sata_sil.c @@ -407,13 +407,12 @@ static int sil_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) if (rc) goto err_out_regions; - probe_ent = kmalloc(sizeof(*probe_ent), GFP_KERNEL); + probe_ent = kzalloc(sizeof(*probe_ent), GFP_KERNEL); if (probe_ent == NULL) { rc = -ENOMEM; goto err_out_regions; } - memset(probe_ent, 0, sizeof(*probe_ent)); INIT_LIST_HEAD(&probe_ent->node); probe_ent->dev = pci_dev_to_dev(pdev); probe_ent->port_ops = sil_port_info[ent->driver_data].port_ops; |