staging: vt6655: s/kmalloc + memset/kzalloc in alloc_rd_info
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 8 Jan 2013 17:52:32 +0000 (12:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 21:17:03 +0000 (13:17 -0800)
commitb5b384b7277aa01b839850fb4092fd247c2bae98
tree9bb96b712b9bc175fcd1a167c9e61b196e203e57
parent4bbc0bc06b8b0cced31ee17beb753ad51a2e47e7
staging: vt6655: s/kmalloc + memset/kzalloc in alloc_rd_info

replace kmalloc and memset if the pointer is valid with kzalloc,
and remove the check around the null pointer cases as we dont need it.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device.h