diff options
| author | Christophe JAILLET <[email protected]> | 2023-01-29 18:23:10 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-01-31 09:40:54 +0000 |
| commit | 49814e2c9c5776c7dc7cfd151aba15bd91804c3c (patch) | |
| tree | f820277a016ca471055065551ac33cd1d3a8d10c /drivers/usb/core/sysfs.c | |
| parent | usb: early: xhci-dbc: Optimize early_xdbc_write() (diff) | |
| download | kernel-49814e2c9c5776c7dc7cfd151aba15bd91804c3c.tar.gz kernel-49814e2c9c5776c7dc7cfd151aba15bd91804c3c.zip | |
usb: early: xhci-dbc: Use memcpy_and_pad()
Instead of zeroing some memory and then copying data in part or all of it,
use memcpy_and_pad().
This avoids writing some memory twice and should save a few cycles.
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/b447a7e9778d3f9e6997eb9494f1687dc2d5d3bf.1675016180.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/core/sysfs.c')
0 files changed, 0 insertions, 0 deletions
