Re: [PATCH] regulator: s2mps11: Don't zero allocated memory for external control

From: Mark Brown
Date: Thu Oct 16 2014 - 04:51:14 EST


On Thu, Oct 16, 2014 at 10:23:28AM +0200, Krzysztof Kozlowski wrote:
> The driver was allocating memory for storing GPIOs for external control
> with unnecessary GFP_ZERO flag. Then right after allocation it
> initialized memory to -EINVAL in loop. Skip the GFP_ZERO flag.

Applied, though it's a bit of a microptimisation and it would be better
to use kmalloc_array() instead.

Attachment: signature.asc
Description: Digital signature