Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccde6b8d authored by Denis Cheng's avatar Denis Cheng Committed by James Bottomley
Browse files

[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: default avatarDenis Cheng <crquan@gmail.com>
Cc: Adam Radford <linuxraid@amcc.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 0b6c4b14
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -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;
	tw_dev = (TW_Device_Extension *)host->hostdata;


	memset(tw_dev, 0, sizeof(TW_Device_Extension));

	/* Save values to device extension */
	/* Save values to device extension */
	tw_dev->host = host;
	tw_dev->host = host;
	tw_dev->tw_pci_dev = pdev;
	tw_dev->tw_pci_dev = pdev;
+0 −2
Original line number Original line Diff line number Diff line
@@ -2286,8 +2286,6 @@ static int __devinit tw_probe(struct pci_dev *pdev, const struct pci_device_id *
	}
	}
	tw_dev = (TW_Device_Extension *)host->hostdata;
	tw_dev = (TW_Device_Extension *)host->hostdata;


	memset(tw_dev, 0, sizeof(TW_Device_Extension));

	/* Save values to device extension */
	/* Save values to device extension */
	tw_dev->host = host;
	tw_dev->host = host;
	tw_dev->tw_pci_dev = pdev;
	tw_dev->tw_pci_dev = pdev;