Skip to contentSkip to conversation

usb: xhci: force all memory allocations to node

PATCH New Timur Tabi 1 participant 1 message May 22, 2018 USB

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH v2 1/1 usb: xhci: force all memory allocations to node

Review

Quoted 1 line · Adam Wallis
(quoted diff) +1 -0
+	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;

Since you only use 'dev' to get the NUMA node, you might want to consider this instead:

	int node = dev_to_node(xhci_to_hcd(xhci)->self.sysdev);