xen/blkback: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 27 Aug 2012 04:28:57 +0000 (12:28 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Oct 2012 07:36:27 +0000 (08:36 +0100)
commit654dbef2146d6bc56886495d44b661148f016e62
treeca75a996359fd076be64e1c67939c2bdfed00590
parentdbd4713348b6b7e4ce707060d1b92a457ab2e5fb
xen/blkback: use kmem_cache_zalloc instead of kmem_cache_alloc/memset

Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset().

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c