diff options
| author | Tudor Gheorghiu <tudor.reda@gmail.com> | 2024-09-22 22:41:14 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-09 12:55:51 +0300 |
| commit | 064894731cb4f905325e4c8356bca88fb41039d3 (patch) | |
| tree | 4f0a20185fab543bf0e592cc6b764c1c211e1ea3 /scripts/checkpatch.pl | |
| parent | c1a5060ec80020ce879fa5b2a16875bd9a5ab930 (diff) | |
| download | linux-064894731cb4f905325e4c8356bca88fb41039d3.tar.xz | |
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>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
