]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: intel_pmc_mux: combine kzalloc + kcalloc
authorRosen Penev <rosenp@gmail.com>
Sat, 25 Apr 2026 01:42:01 +0000 (18:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Apr 2026 16:17:52 +0000 (10:17 -0600)
commit8bdb0b3830eaf588fcd7c76c1893d05d871600d2
tree013570affae7b2fd2f74bb619f34b0602d274d74
parentb38fa168a848b8ddd3c3d767d7d1daaf8ccadcf8
usb: typec: intel_pmc_mux: combine kzalloc + kcalloc

A flexible array member can be used to combine allocations and simplify
handling slightly.

Add __counted_by for extra runtime analysis.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260425014201.439251-1-rosenp@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c