mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: use NUMA_NO_NODE instead of the magic number -1
Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
caafa84251
commit
b236da6931
3 changed files with 4 additions and 3 deletions
|
@ -1009,7 +1009,8 @@ static ssize_t store_xps_map(struct netdev_queue *queue,
|
|||
if (dev_maps)
|
||||
call_rcu(&dev_maps->rcu, xps_dev_maps_release);
|
||||
|
||||
netdev_queue_numa_node_write(queue, (numa_node >= 0) ? numa_node : -1);
|
||||
netdev_queue_numa_node_write(queue, (numa_node >= 0) ? numa_node :
|
||||
NUMA_NO_NODE);
|
||||
|
||||
mutex_unlock(&xps_map_mutex);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue