kernel-ark/drivers/staging/otus
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
..
80211core Staging: otus: 80211core: Hoist assign from if 2010-05-11 11:35:43 -07:00
hal Staging: otus: Hoist assign from if 2010-05-11 11:35:43 -07:00
apdbg.c Staging: otus: fix some sparse warnings 2010-03-03 16:42:27 -08:00
athr_common.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00
ioctl.c Staging: otus: Add null check and fix coding style issue 2010-05-11 11:35:43 -07:00
Kconfig Staging: otus: Add select WEXT_PRIV to Kconfig to prevent build failure 2010-03-03 16:42:40 -08:00
Makefile
oal_dt.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00
oal_marc.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00
TODO staging: document that the wifi staging drivers a bit better 2009-04-03 14:54:27 -07:00
usbdrv.c Staging: otus: Hoist assign from if 2010-05-11 11:35:43 -07:00
usbdrv.h staging/otus: include slab.h from usbdrv.h 2010-04-05 11:23:16 +09:00
wrap_buf.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_dbg.c Staging: otus : checkpatch.pl cleanup for .c files 2009-12-11 12:23:11 -08:00
wrap_ev.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_mem.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
wrap_mis.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_pkt.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
wrap_sec.c Staging: otus : checkpatch.pl cleanup for some more .c files 2009-12-11 12:23:11 -08:00
wrap_usb.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
wwrap.c Staging: otus: drop redundant memset 2010-05-11 11:35:34 -07:00
zdcompat.h tree-wide: fix misspelling of "definition" in comments 2009-12-04 23:41:47 +01:00
zdusb.c Staging: Use kcalloc or kzalloc 2010-05-14 14:02:56 -07:00
zdusb.h Staging: otus : checkpatch.pl cleanup for header files 2009-12-11 12:23:11 -08:00