From: Jan Kiszka <[email protected]>

This error will be reported by jailhouse_cmd_cell_create via -EBUSY and
is no reason to create a kernel warning.

Signed-off-by: Jan Kiszka <[email protected]>
---
 driver/sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/driver/sysfs.c b/driver/sysfs.c
index a15a2787..a604afa4 100644
--- a/driver/sysfs.c
+++ b/driver/sysfs.c
@@ -1,7 +1,7 @@
 /*
  * Jailhouse, a Linux-based partitioning hypervisor
  *
- * Copyright (c) Siemens AG, 2014-2017
+ * Copyright (c) Siemens AG, 2014-2020
  *
  * Authors:
  *  Jan Kiszka <[email protected]>
@@ -406,7 +406,7 @@ int jailhouse_sysfs_cell_create(struct cell *cell)
                        list_add_tail(&cell_cpu->entry, &cell->cell_cpus);
                } else {
                        cell_cpu = find_cell_cpu(root_cell, cpu);
-                       if (WARN_ON(cell_cpu == NULL))
+                       if (cell_cpu == NULL)
                                continue;
 
                        err = kobject_move(&cell_cpu->kobj, &cell->stats_kobj);
-- 
2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/903375e1-5759-3d13-32cc-1bec55ce3a14%40siemens.com.

Reply via email to