summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/3w-9xxx.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2008-03-05 00:24:23 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 19:18:59 +0200
commitccde6b8d6217834def292030a1864d517f55ded5 (patch)
tree0b39f61a075d8a5eb7428943d5d80748b1986f15 /drivers/scsi/3w-9xxx.c
parent[SCSI] aic7xxx: Test opcode, not definition in aicasm:type_check() (diff)
downloadlinux-ccde6b8d6217834def292030a1864d517f55ded5.tar.xz
linux-ccde6b8d6217834def292030a1864d517f55ded5.zip
[SCSI] 3w-9xxx, 3w-xxxx: memset not needed in probe
The memory return from scsi_host_alloc is alloced by kzalloc, which is already zero initilized, so memset not needed. Signed-off-by: Denis Cheng <crquan@gmail.com> Cc: Adam Radford <linuxraid@amcc.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/3w-9xxx.c')
-rw-r--r--drivers/scsi/3w-9xxx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c
index fa922f806357..51c3ebf1c7d1 100644
--- a/drivers/scsi/3w-9xxx.c
+++ b/drivers/scsi/3w-9xxx.c
@@ -2025,8 +2025,6 @@ static int __devinit twa_probe(struct pci_dev *pdev, const struct pci_device_id
}
tw_dev = (TW_Device_Extension *)host->hostdata;
- memset(tw_dev, 0, sizeof(TW_Device_Extension));
-
/* Save values to device extension */
tw_dev->host = host;
tw_dev->tw_pci_dev = pdev;