lkml.org 
[lkml]   [2014]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: s2mps11: Don't zero allocated memory for external control
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-10-16 11:21    [W:2.081 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site