Home
last modified time | relevance | path

Searched hist:"9 c0e6fbd" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/gadget/
H A Dconfigfs.c9c0e6fbd Thu Feb 02 09:17:36 CST 2023 Andy Shevchenko <andriy.shevchenko@linux.intel.com> usb: gadget: configfs: 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230202151736.64552-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>