kernel: power: swap: use kzalloc() instead of kmalloc() followed by memset()
authorFuqian Huang <huangfq.daxian@gmail.com>
Fri, 28 Jun 2019 02:50:35 +0000 (10:50 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Jun 2019 08:20:39 +0000 (10:20 +0200)
commit2f02a7ecd512288c40bd72bdd4d87ab4f01c1615
treeb52dd965b6da75badb3f3d0a39a531b1fc85f973
parente9bea8f98a539080070e3eff70a1731ce0ffdc8d
kernel: power: swap: use kzalloc() instead of kmalloc() followed by memset()

Use zeroing allocator instead of using allocator
followed with memset with 0

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/swap.c