]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: rtl8712: use kmalloc_array
authorTudor Gheorghiu <tudor.reda@gmail.com>
Sun, 22 Sep 2024 19:41:14 +0000 (22:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Oct 2024 09:55:51 +0000 (11:55 +0200)
commit064894731cb4f905325e4c8356bca88fb41039d3
tree4f0a20185fab543bf0e592cc6b764c1c211e1ea3
parentc1a5060ec80020ce879fa5b2a16875bd9a5ab930
staging: rtl8712: use kmalloc_array

Adhere to Linux kernel coding style.

Reported by checkpatch:

WARNING: Prefer kmalloc_array over kmalloc with multiply
+       pxmitpriv->pxmitbuf = kmalloc(NR_XMITBUFF * sizeof(struct xmit_buf), GFP_ATOMIC);

Signed-off-by: Tudor Gheorghiu <tudor.reda@gmail.com>
Reviewed-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ZvBy2lB_ok_OCmVI@redaops
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_xmit.c