mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xl/libxl: remove a bunch of pointless assignments
Those values are overwritten before they can be of any use. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
aba1db82f5
commit
da66099b8b
3 files changed
+4
-4
No files matched your search
@@ -1700,7 +1700,7 @@ void libxl__domain_save(libxl__egc *egc, libxl__domain_suspend_state *dss)
|
||||
{
|
||||
STATE_AO_GC(dss->ao);
|
||||
int port;
|
||||
int rc = ERROR_FAIL;
|
||||
int rc;
|
||||
|
||||
/* Convenience aliases */
|
||||
const uint32_t domid = dss->domid;
|
||||
|
||||
@@ -47,7 +47,7 @@ static void drbd_async_call(libxl__egc *egc,
|
||||
void func(libxl__remus_device *),
|
||||
libxl__ev_child_callback callback)
|
||||
{
|
||||
int pid = -1, rc;
|
||||
int pid, rc;
|
||||
libxl__ao_device *aodev = &dev->aodev;
|
||||
STATE_AO_GC(dev->rds->ao);
|
||||
|
||||
|
||||
@@ -4055,7 +4055,7 @@ static pid_t create_migration_child(const char *rune, int *send_fd,
|
||||
int *recv_fd)
|
||||
{
|
||||
int sendpipe[2], recvpipe[2];
|
||||
pid_t child = -1;
|
||||
pid_t child;
|
||||
|
||||
if (!rune || !send_fd || !recv_fd)
|
||||
return -1;
|
||||
@@ -7794,7 +7794,7 @@ int main_getenforce(int argc, char **argv)
|
||||
|
||||
int main_setenforce(int argc, char **argv)
|
||||
{
|
||||
int ret, mode = -1;
|
||||
int ret, mode;
|
||||
const char *p = NULL;
|
||||
|
||||
if (optind >= argc) {
|
||||
|
||||