mbox series

[v2,0/2] clk: Switch to use kmemdup_array()

Message ID 20240814125513.2637955-1-andriy.shevchenko@linux.intel.com (mailing list archive)
Headers show
Series clk: Switch to use kmemdup_array() | expand

Message

Andy Shevchenko Aug. 14, 2024, 12:54 p.m. UTC
Replace open coded kmemdup_array(), which does an additional
overflow check.

v2:
- dropped upstreamed changes
- fixed a typo in the commit messages

Andy Shevchenko (2):
  clk: mmp: Switch to use kmemdup_array()
  clk: visconti: Switch to use kmemdup_array()

 drivers/clk/mmp/clk-mix.c  | 10 ++++------
 drivers/clk/visconti/pll.c |  6 +++---
 2 files changed, 7 insertions(+), 9 deletions(-)