linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] drivers/scsi/aic7xxx/aic7xxx_osm.c: replace kmalloc/memset 0 by kzalloc
@ 2014-05-27 18:18 Fabian Frederick
  2014-05-28 10:42 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-05-27 18:18 UTC (permalink / raw)
  To: linux-scsi; +Cc: Fabian Frederick, Hannes Reinecke, James E.J. Bottomley

Cc: Hannes Reinecke <hare@suse.de>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 drivers/scsi/aic7xxx/aic7xxx_osm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
index c0c6258..7167cfe 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -1223,10 +1223,9 @@ ahc_platform_alloc(struct ahc_softc *ahc, void *platform_arg)
 {
 
 	ahc->platform_data =
-	    kmalloc(sizeof(struct ahc_platform_data), GFP_ATOMIC);
+	    kzalloc(sizeof(struct ahc_platform_data), GFP_ATOMIC);
 	if (ahc->platform_data == NULL)
 		return (ENOMEM);
-	memset(ahc->platform_data, 0, sizeof(struct ahc_platform_data));
 	ahc->platform_data->irq = AHC_LINUX_NOIRQ;
 	ahc_lockinit(ahc);
 	ahc->seltime = (aic7xxx_seltime & 0x3) << 4;
-- 
1.8.4.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] drivers/scsi/aic7xxx/aic7xxx_osm.c: replace kmalloc/memset 0 by kzalloc
  2014-05-27 18:18 [PATCH 1/1] drivers/scsi/aic7xxx/aic7xxx_osm.c: replace kmalloc/memset 0 by kzalloc Fabian Frederick
@ 2014-05-28 10:42 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2014-05-28 10:42 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: linux-scsi, Hannes Reinecke, James E.J. Bottomley

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-28 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 18:18 [PATCH 1/1] drivers/scsi/aic7xxx/aic7xxx_osm.c: replace kmalloc/memset 0 by kzalloc Fabian Frederick
2014-05-28 10:42 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).