Commit 7973642
gpiolib: Replace open coded krealloc()
gpiod_get_array() does a new allocation in some cases, followed
by copying previously allocated placeholder for the descriptors.
Replace that with krealloc(__GFP_ZERO), since it was kzalloc()
originally.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>1 parent 2093bcd commit 7973642
1 file changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4277 | 4277 | | |
4278 | 4278 | | |
4279 | 4279 | | |
| 4280 | + | |
4280 | 4281 | | |
4281 | 4282 | | |
4282 | 4283 | | |
4283 | 4284 | | |
4284 | 4285 | | |
4285 | | - | |
| 4286 | + | |
| 4287 | + | |
4286 | 4288 | | |
4287 | 4289 | | |
4288 | 4290 | | |
| |||
4306 | 4308 | | |
4307 | 4309 | | |
4308 | 4310 | | |
4309 | | - | |
4310 | | - | |
4311 | | - | |
| 4311 | + | |
| 4312 | + | |
| 4313 | + | |
4312 | 4314 | | |
4313 | 4315 | | |
4314 | 4316 | | |
4315 | 4317 | | |
4316 | 4318 | | |
4317 | | - | |
4318 | | - | |
4319 | | - | |
4320 | | - | |
4321 | 4319 | | |
4322 | | - | |
| 4320 | + | |
| 4321 | + | |
4323 | 4322 | | |
4324 | 4323 | | |
4325 | 4324 | | |
| |||
0 commit comments