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:
Wei Liu authored and Ian Campbell committed 2015-07-24 11:27:52 +01:00
1 parent aba1db82f5
commit da66099b8b
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.