aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/core.c
diff options
context:
space:
mode:
authorJan Beulich <[email protected]>2021-03-10 10:46:13 +0000
committerBoris Ostrovsky <[email protected]>2021-03-10 22:39:29 +0000
commitf1d20d8643e54dcde242fd2c8748063ed75702a8 (patch)
treed30db68e7e948fcdeeae5f0fb503654c2d504a81 /drivers/usb/cdns3/core.c
parentXen/gnttab: introduce common INVALID_GRANT_{HANDLE,REF} (diff)
downloadkernel-f1d20d8643e54dcde242fd2c8748063ed75702a8.tar.gz
kernel-f1d20d8643e54dcde242fd2c8748063ed75702a8.zip
Xen/gntdev: don't needlessly use kvcalloc()
Requesting zeroed memory when all of it will be overwritten subsequently by all ones is a waste of processing bandwidth. In fact, rather than recording zeroed ->grants[], fill that array too with more appropriate "invalid" indicators. Signed-off-by: Jan Beulich <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Boris Ostrovsky <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions