summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2020-11-12 14:37:47 +0100
committerMichael S. Tsirkin <mst@redhat.com>2020-12-18 16:14:25 -0500
commit6725f21157b4b6a9fe689cdf07b040d21ea536dd (patch)
tree2735c3870ef71e84a92ae2c996d432ec2560b049 /drivers/iio
parent2c85ebc57b3e1817b6ce1a6b703928e113a90442 (diff)
downloadlinux-stable-6725f21157b4b6a9fe689cdf07b040d21ea536dd.tar.gz
linux-stable-6725f21157b4b6a9fe689cdf07b040d21ea536dd.tar.bz2
linux-stable-6725f21157b4b6a9fe689cdf07b040d21ea536dd.zip
virtio-mem: determine nid only once using memory_add_physaddr_to_nid()
Let's determine the target nid only once in case we have none specified - usually, we'll end up with node 0 either way. Reviewed-by: Wei Yang <richard.weiyang@linux.alibaba.com> Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Jason Wang <jasowang@redhat.com> Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Signed-off-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20201112133815.13332-2-david@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions