mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 06:41:39 +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
|
@ -530,7 +530,7 @@ static inline int netdev_queue_numa_node_read(const struct netdev_queue *q)
|
|||
#if defined(CONFIG_XPS) && defined(CONFIG_NUMA)
|
||||
return q->numa_node;
|
||||
#else
|
||||
return -1;
|
||||
return NUMA_NO_NODE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue