kernel-fxtec-pro1x/drivers/staging/pohmelfs
Julia Lawall 7a6cb0d549 Staging: Use kcalloc or kzalloc
Use kcalloc or kzalloc rather than the combination of kmalloc and memset.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,y,flags;
statement S;
type T;
@@

x =
-   kmalloc
+   kcalloc
           (
-           y * sizeof(T),
+           y, sizeof(T),
                flags);
 if (x == NULL) S
-memset(x, 0, y * sizeof(T));

@@
expression x,size,flags;
statement S;
@@

-x = kmalloc(size,flags);
+x = kzalloc(size,flags);
 if (x == NULL) S
-memset(x, 0, size);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
2010-05-14 14:02:56 -07:00
..
config.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
crypto.c Staging: pohmelfs: fix spaces and TAB coding style issue in crypto.c 2010-05-11 11:35:41 -07:00
dir.c Staging: pohmelfs: fix spaces and TAB coding style issue in dir.c 2010-05-11 11:35:41 -07:00
inode.c Staging: pohmelfs: fix spaces and TAB coding style issue in inode.c 2010-05-11 11:35:41 -07:00
Kconfig Staging: pohmelfs: fix kconfig dependencies 2009-04-03 14:53:36 -07:00
lock.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
Makefile Staging: pohmelfs: kconfig/makefile and vfs changes. 2009-04-03 14:53:36 -07:00
mcache.c Staging: pohmelfs: distributed locking and cache coherency protocol. 2009-04-03 14:53:34 -07:00
net.c Staging: pohmelfs: fix spaces and TAB coding style issue in net.c 2010-05-11 11:35:41 -07:00
netfs.h Staging: pohmelfs: fix spaces and TAB coding style issue in netfs.h 2010-05-11 11:35:41 -07:00
path_entry.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
trans.c Staging: pohmelfs: sync with the development tree 2009-09-15 12:02:30 -07:00