diff options
author | Julia Lawall <julia@diku.dk> | 2010-03-10 22:15:19 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-18 16:04:09 +0100 |
commit | 4d682420cead1ce06d8cd44ae193414404f0e7f5 (patch) | |
tree | 964bf2574e5c3f2df7a46c7ad59684f818bd96fb /sound/pci/echoaudio/mia_dsp.c | |
parent | mtd: small typo in Makefile (diff) | |
download | linux-4d682420cead1ce06d8cd44ae193414404f0e7f5.tar.xz linux-4d682420cead1ce06d8cd44ae193414404f0e7f5.zip |
mtd: block2mtd: Use kasprintf
kasprintf combines kmalloc and sprintf, and takes care of the size
calculation itself.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression a,flag;
expression list args;
statement S;
@@
a =
- \(kmalloc\|kzalloc\)(...,flag)
+ kasprintf(flag,args)
<... when != a
if (a == NULL || ...) S
...>
- sprintf(a,args);
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'sound/pci/echoaudio/mia_dsp.c')
0 files changed, 0 insertions, 0 deletions