]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rts_pstor: optimize kmalloc to kzalloc
authorAlexander Beregalov <a.beregalov@gmail.com>
Wed, 9 Mar 2011 00:53:38 +0000 (03:53 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Mar 2011 23:54:31 +0000 (15:54 -0800)
commit1840c15b0a504fed6ee08b475245a964336b76e6
tree428b600533bbb476c12e88b5b9f28cc308a2b085
parent12d0eb47ddd20cf8f1e8d768b0f8f81984902a60
staging: rts_pstor: 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/rts_pstor/rtsx.c