Re: [PATCH v2] usb: xhci: force all memory allocations to node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/22/18 1:55 PM, Adam Wallis wrote:
+	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);

--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc.  Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux