scsi: aic7xxx: use kzalloc instead of kmalloc/memset
Subsystems (3)
PATCH 1/4 scsi: aic7xxx: use kzalloc instead of kmalloc/memset
Signed-off-by Daeseok Youn <[email protected]>
--- drivers/scsi/aic7xxx/aic7xxx_osm.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/scsi/aic7xxx/aic7xxx_osm.c +1 -1
@@ -1214,10 +1214,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 ;
Signature · 1 line
1.7.1