Re: [PATCH md 008 of 14] Convert md to use kzalloc throughout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



NeilBrown <neilb@xxxxxxx> wrote:
>
> -	conf = kmalloc (sizeof (*conf) + mddev->raid_disks*sizeof(dev_info_t),
>  +	conf = kzalloc (sizeof (*conf) + mddev->raid_disks*sizeof(dev_info_t),
>  -	new = (mddev_t *) kmalloc(sizeof(*new), GFP_KERNEL);
>  +	new = (mddev_t *) kzalloc(sizeof(*new), GFP_KERNEL);
>  -	rdev = (mdk_rdev_t *) kmalloc(sizeof(*rdev), GFP_KERNEL);
>  +	rdev = (mdk_rdev_t *) kzalloc(sizeof(*rdev), GFP_KERNEL);

It'd be nice to nuke the unneeded cast while we're there.

<edits the diff>

OK, I did that.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux