diff options
| author | Jan Beulich <[email protected]> | 2021-03-10 10:46:13 +0000 |
|---|---|---|
| committer | Boris Ostrovsky <[email protected]> | 2021-03-10 22:39:29 +0000 |
| commit | f1d20d8643e54dcde242fd2c8748063ed75702a8 (patch) | |
| tree | d30db68e7e948fcdeeae5f0fb503654c2d504a81 /drivers/usb/cdns3/core.c | |
| parent | Xen/gnttab: introduce common INVALID_GRANT_{HANDLE,REF} (diff) | |
| download | kernel-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
