spi: Replace memset() with __GFP_ZERO
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 22 Nov 2021 17:17:20 +0000 (19:17 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 Nov 2021 12:09:07 +0000 (12:09 +0000)
commitb00bab9d48bbb6446a5cf366f5f8e501a16031a1
tree7380ef93c5444e41b63ef3ce26986d5f6a120960
parent49cd1eb37b487036f51bd57b591f7b5760a10e02
spi: Replace memset() with __GFP_ZERO

krealloc() as any other kernel memory allocation calls accepts GFP flags,
one of which is __GFP_ZERO. Hence, no need to call memset() explicitly on
the reallocated buffer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211122171721.61553-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c