diff options
| author | Robert Greener <rob@robgreener.com> | 2021-10-01 16:13:50 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-06 08:25:47 +0200 |
| commit | f3351eca1fb16abc4c33392a980e1ec1a6f6aa59 (patch) | |
| tree | 139e2ae38edfbe7f20aad7b7c23093e81d0f337a /tools/perf/scripts/python | |
| parent | ARM: dts: stm32: set otg-rev on stm32mp151 (diff) | |
| download | linux-f3351eca1fb16abc4c33392a980e1ec1a6f6aa59.tar.gz linux-f3351eca1fb16abc4c33392a980e1ec1a6f6aa59.zip | |
usb: core: config: Change sizeof(struct ...) to sizeof(*...)
This fixes the following checkpatch.pl warnings:
drivers/usb/core/config.c:989: CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*bos)...) over kzalloc(sizeof(struct usb_bos_descriptor)...)
drivers/usb/core/config.c:1010: CHECK:ALLOC_SIZEOF_STRUCT: Prefer kzalloc(sizeof(*dev->bos)...) over kzalloc(sizeof(struct usb_host_bos)...)
Signed-off-by: Robert Greener <rob@robgreener.com>
Link: https://lore.kernel.org/r/20211001151350.ijiexr3ebwvypmdd@shortbread
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
