aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/3w-xxxx.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2008-03-04 18:24:23 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 13:18:59 -0400
commitccde6b8d6217834def292030a1864d517f55ded5 (patch)
tree0b39f61a075d8a5eb7428943d5d80748b1986f15 /drivers/scsi/3w-xxxx.c
parent0b6c4b14cfb2fd89064d29bdead62f9ed8631399 (diff)
[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-xxxx.c')
-rw-r--r--drivers/scsi/3w-xxxx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c
index a2fc06022e10..adb98a297210 100644
--- a/drivers/scsi/3w-xxxx.c
+++ b/drivers/scsi/3w-xxxx.c
@@ -2286,8 +2286,6 @@ static int __devinit tw_probe(struct pci_dev *pdev, const struct pci_device_id *
2286 } 2286 }
2287 tw_dev = (TW_Device_Extension *)host->hostdata; 2287 tw_dev = (TW_Device_Extension *)host->hostdata;
2288 2288
2289 memset(tw_dev, 0, sizeof(TW_Device_Extension));
2290
2291 /* Save values to device extension */ 2289 /* Save values to device extension */
2292 tw_dev->host = host; 2290 tw_dev->host = host;
2293 tw_dev->tw_pci_dev = pdev; 2291 tw_dev->tw_pci_dev = pdev;