Staging: hv: Transform some kzalloc calls to kcalloc
authorNicolas Palix <npalix@diku.dk>
Wed, 22 Jul 2009 13:39:13 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:49 +0000 (12:01 -0700)
commit06da0bc86565765cb6bf2fd85dbdeeea88095051
tree324e2ca93fea3c73e1e58adc0c7d54b9d8ae86cb
parentc18b5aed9d8c37db5e5835eb7d25f99f62a7f06a
Staging: hv: Transform some kzalloc calls to kcalloc

Here is a short excerpt of the semantic patch performing
this transformation:
(http://www.emn.fr/x-info/coccinelle/)

//<smpl>
@@
expression E1,E2,E3;
@@
- kzalloc(E1*sizeof(E2),E3)
+ kcalloc(E1,sizeof(E2),E3)

@@
expression E1,E3;
type T;
@@
- kzalloc(E1*sizeof(T),E3)
+ kcalloc(E1,sizeof(T),E3)
//</smpl>

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/storvsc_drv.c