[PATCH 2/20] drivers/gpu/drm: Use kzalloc

2010-05-13 Thread Julia Lawall
From: Julia Lawall Use kzalloc rather than the combination of kmalloc and memset. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,size,flags; statement S; @@ -x = kmalloc(size,flags); +x = kzalloc(size,flags); if (x == NULL) S -memset(

[PATCH 2/20] drivers/gpu/drm: Use kzalloc

2010-05-13 Thread Matt Turner
On Thu, May 13, 2010 at 3:58 PM, Julia Lawall wrote: > From: Julia Lawall > > Use kzalloc rather than the combination of kmalloc and memset. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,size,flags; > statement S; > @@ > >

Re: [PATCH 2/20] drivers/gpu/drm: Use kzalloc

2010-05-13 Thread Matt Turner
On Thu, May 13, 2010 at 3:58 PM, Julia Lawall wrote: > From: Julia Lawall > > Use kzalloc rather than the combination of kmalloc and memset. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,size,flags; > statement S; > @@ > >

Re: [PATCH 2/20] drivers/gpu/drm: Use kzalloc

2010-05-13 Thread Corbin Simpson
On Thu, May 13, 2010 at 12:58 PM, Julia Lawall wrote: > From: Julia Lawall > > Use kzalloc rather than the combination of kmalloc and memset. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,size,flags; > statement S; > @@ > >

[PATCH 2/20] drivers/gpu/drm: Use kzalloc

2010-05-13 Thread Corbin Simpson
On Thu, May 13, 2010 at 12:58 PM, Julia Lawall wrote: > From: Julia Lawall > > Use kzalloc rather than the combination of kmalloc and memset. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,size,flags; > statement S; > @@ > >

[PATCH 2/20] drivers/gpu/drm: Use kzalloc

2010-05-13 Thread Julia Lawall
From: Julia Lawall Use kzalloc rather than the combination of kmalloc and memset. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,size,flags; statement S; @@ -x = kmalloc(size,flags); +x = kzalloc(size,flags); if (x == NULL) S -memset(