Searched hist:a718e68ede16957e091ee8f35f7b73765e51a092 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/pinctrl/intel/ |
H A D | pinctrl-lynxpoint.c | diff a718e68ede16957e091ee8f35f7b73765e51a092 Mon Nov 25 17:26:35 CET 2019 Andy Shevchenko <andriy.shevchenko@linux.intel.com> pinctrl: lynxpoint: Use standard pattern for memory allocation
The pattern foo = kmalloc(sizeof(*foo), GFP_KERNEL); has an advantage when foo type is changed. Since we are planning a such, better to be prepared by using standard pattern for memory allocation.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
|