DRM: Replace kmalloc/memset combos with kzalloc
authorDavidlohr Bueso <dave@gnu.org>
Wed, 11 Aug 2010 13:18:52 +0000 (09:18 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Aug 2010 23:12:30 +0000 (09:12 +1000)
commit94e3370eb9fc00c44008ee7fd30c5cb00291c34d
tree87d5ec184988ad6e8626585036d786dbcccb1bb1
parent7203425a943eb3e189ba6b512827e0deb5f23872
DRM: Replace kmalloc/memset combos with kzalloc

Currently most, if not all, memory allocation in drm_bufs.c is followed by initializing the memory with 0.

Replace the use of kmalloc+memset with kzalloc.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_bufs.c