Skip to contentSkip to conversation

tools/xenstored: Remove unused parameter in check_domains()

PATCH In review Julien Grall 3 participants 3 messages May 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/xenstored: Remove unused parameter in check_domains()

From: Julien Grall <[email protected]>

The parameter of check_domains() is not used within the function. In fact, this was a left over of the original implementation as the version merged doesn't need to know whether we are restoring.

So remove it.

---
 tools/xenstore/xenstored_control.c | 2 +-
 tools/xenstore/xenstored_domain.c  | 4 ++--
 tools/xenstore/xenstored_domain.h  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
tools/xenstore/xenstored_control.c +1 -1
index 8e470f2b2056..07458d7b48d0 100644
@@ -589,7 +589,7 @@ void lu_read_state(void)
 	 * have died while we were live-updating. So check all the domains are
 	 * still alive.
 	 */
-	check_domains(true);
+	check_domains();
 }
 
 static const char *lu_activate_binary(const void *ctx)
tools/xenstore/xenstored_domain.c +2 -2
index 3d4d0649a243..0e4bae9a9dd6 100644
@@ -220,7 +220,7 @@ static bool get_domain_info(unsigned int domid, xc_dominfo_t *dominfo)
 	       dominfo->domid == domid;
 }
 
-void check_domains(bool restore)
+void check_domains(void)
 {
 	xc_dominfo_t dominfo;
 	struct domain *domain;
@@ -277,7 +277,7 @@ void handle_event(void)
 		barf_perror("Failed to read from event fd");
 
 	if (port == virq_port)
-		check_domains(false);
+		check_domains();
 
 	if (xenevtchn_unmask(xce_handle, port) == -1)
 		barf_perror("Failed to write to event fd");
tools/xenstore/xenstored_domain.h +1 -1
index dc9759171317..cc5147d7e747 100644
@@ -21,7 +21,7 @@
 
 void handle_event(void);
 
-void check_domains(bool restore);
+void check_domains(void);
 
 /* domid, mfn, eventchn, path */
 int do_introduce(struct connection *conn, struct buffered_data *in);
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Julien Grall
Quoted 71 lines · Julien Grall

From: Julien Grall <[email protected]>

The parameter of check_domains() is not used within the function. In fact, this was a left over of the original implementation as the version merged doesn't need to know whether we are restoring.

So remove it.

---

tools/xenstore/xenstored_control.c | 2 +-
tools/xenstore/xenstored_domain.c  | 4 ++--
tools/xenstore/xenstored_domain.h  | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
tools/xenstore/xenstored_control.c +1 -1
index 8e470f2b2056..07458d7b48d0 100644
@@ -589,7 +589,7 @@ void lu_read_state(void)
 	 * have died while we were live-updating. So check all the domains are
 	 * still alive.
 	 */
-	check_domains(true);
+	check_domains();
 }
 
 static const char *lu_activate_binary(const void *ctx)
tools/xenstore/xenstored_domain.c +2 -2
index 3d4d0649a243..0e4bae9a9dd6 100644
@@ -220,7 +220,7 @@ static bool get_domain_info(unsigned int domid, xc_dominfo_t *dominfo)
 	       dominfo->domid == domid;
 }
 
-void check_domains(bool restore)
+void check_domains(void)
 {
 	xc_dominfo_t dominfo;
 	struct domain *domain;
@@ -277,7 +277,7 @@ void handle_event(void)
 		barf_perror("Failed to read from event fd");
 
 	if (port == virq_port)
-		check_domains(false);
+		check_domains();
 
 	if (xenevtchn_unmask(xce_handle, port) == -1)
 		barf_perror("Failed to write to event fd");
tools/xenstore/xenstored_domain.h +1 -1
index dc9759171317..cc5147d7e747 100644
@@ -21,7 +21,7 @@
 
 void handle_event(void);
 
-void check_domains(bool restore);
+void check_domains(void);
 
 /* domid, mfn, eventchn, path */
 int do_introduce(struct connection *conn, struct buffered_data *in);
Signature · 1 line
2.17.1

Cheers,
Luca