staging: spectra: optimize kmalloc to kzalloc
authorAlexander Beregalov <a.beregalov@gmail.com>
Wed, 9 Mar 2011 00:53:36 +0000 (03:53 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Mar 2011 23:54:32 +0000 (15:54 -0800)
commitfb44022f1865ca4a5fcee4fc26a260b83ca05c06
tree8d40c0fb0e0c1a0f88fb32c08b2571e714ef3e96
parent2f4813163639f9f528c41d98ea52dcc85f8d9781
staging: spectra: optimize kmalloc to kzalloc

Use kzalloc rather than kmalloc followed by memset with 0.
Found by coccinelle.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/spectra/flash.c