physmem: fix physmem allocation on kernels without NUMA support

Change-Id: I056598a1818a39c2da73e252600c14585e5aae83
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vlib/linux/physmem.c b/src/vlib/linux/physmem.c
index 161dbf5..72b00e2 100644
--- a/src/vlib/linux/physmem.c
+++ b/src/vlib/linux/physmem.c
@@ -223,8 +223,8 @@
 	{
 	  void *ptr = pr->mem + (i << pr->log2_page_size);
 	  int node;
-	  move_pages (0, 1, &ptr, 0, &node, 0);
-	  if (numa_node != node)
+	  if ((move_pages (0, 1, &ptr, 0, &node, 0) == 0) &&
+	      (numa_node != node))
 	    {
 	      clib_warning ("physmem page for region \'%s\' allocated on the"
 			    " wrong numa node (requested %u actual %u)",