tools/xenstored: Remove unused parameter in check_domains()
authorJulien Grall <jgrall@amazon.com>
Wed, 26 May 2021 15:35:53 +0000 (16:35 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 26 May 2021 15:35:53 +0000 (16:35 +0100)
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.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_domain.c
tools/xenstore/xenstored_domain.h

index 52d4817679fe9121222804337143756bdaa0ddf7..2c63ba7ead909a468fbf14d0b475445ab6e8cec4 100644 (file)
@@ -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)
index 708bf68af0143bc3c234b7c7a3180955bff6413f..322b0dbca44982b1160a6f12a72022c3668d32c0 100644 (file)
@@ -227,7 +227,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;
@@ -284,7 +284,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");
index dc975917131738b47b9c34384b014629ab127db5..cc5147d7e7479985c93d3575d95e59caeed3258f 100644 (file)
@@ -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);