open-gpu-kernel-modules icon indicating copy to clipboard operation
open-gpu-kernel-modules copied to clipboard

Introduce NV_KZALLOC macro

Open trixirt opened this issue 2 years ago • 2 comments

The pattern of p = kmalloc(...); memset(p, 0, ...);

Can be reduced to p = kzalloc(...)

So introduce and use NV_KZALLOC, a macro that wraps kzalloc.

Signed-off-by: Tom Rix trix@redhat

trixirt avatar Jul 22 '22 21:07 trixirt