Merge Linus master into drm-next
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / aic7xxx / aic79xx_osm.c
index d5c7b193d8d3d6c86e3432d478ce1e6385ddbf06..ce96a0be32820fa6b75460adf9e4b7f48587ab05 100644 (file)
@@ -1326,10 +1326,9 @@ int
 ahd_platform_alloc(struct ahd_softc *ahd, void *platform_arg)
 {
        ahd->platform_data =
-           kmalloc(sizeof(struct ahd_platform_data), GFP_ATOMIC);
+           kzalloc(sizeof(struct ahd_platform_data), GFP_ATOMIC);
        if (ahd->platform_data == NULL)
                return (ENOMEM);
-       memset(ahd->platform_data, 0, sizeof(struct ahd_platform_data));
        ahd->platform_data->irq = AHD_LINUX_NOIRQ;
        ahd_lockinit(ahd);
        ahd->seltime = (aic79xx_seltime & 0x3) << 4;