Xen/gntdev: don't needlessly allocate k{,un}map_ops[]
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Mar 2021 10:45:00 +0000 (11:45 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 10 Mar 2021 22:39:29 +0000 (16:39 -0600)
commit36caa3fedf06d377bd08bc91b50c93fb9022f5ec
tree6fa7c3dab95e66f8273c0d36d4907f38f4065bdb
parent0f9b05b9a01a4cf6b6bdf904faacf4796e2aa232
Xen/gntdev: don't needlessly allocate k{,un}map_ops[]

They're needed only in the not-auto-translate (i.e. PV) case; there's no
point in allocating memory that's never going to get accessed.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/180d50cb-5531-8952-4bf0-d65c554638ed@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/gntdev.c