summaryrefslogtreecommitdiff
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-12-14 06:09:15 +0300
committerDavid S. Miller <davem@davemloft.net>2010-12-17 00:16:06 +0300
commitb236da6931e2482bfe44a7865dd4e7bb036f3496 (patch)
treecf383f0fd1d4b1091e60413fe1aa6a054f6c6a58 /net/core/net-sysfs.c
parentcaafa84251b886feb6cdf23d50e2cc99dcdaaaf3 (diff)
downloadlinux-b236da6931e2482bfe44a7865dd4e7bb036f3496.tar.xz
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>
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r--net/core/net-sysfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 85e8b5326dd6..e23c01be5a5b 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -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);