Commit 861afa0b authored by Mitul Karnik's avatar Mitul Karnik Committed by Andrei Vagin

Removing Unneeded Return Value Assignments

Removed return value assignment statements as they are not referenced or used
anywhere after the assignment is done.

Fixes #334: Removing Unneeded Assignments
Signed-off-by: 's avatarMitul Karnik <mitulkarnik.92@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent 9f176a96
......@@ -455,7 +455,7 @@ void *remote_mmap(struct parasite_ctl *ctl,
if (ptrace_poke_area(pid, &arg_struct, where, sizeof(arg_struct))) {
pr_err("Can't restore mmap args (pid: %d)\n", pid);
if (map != 0) {
err = compel_syscall(ctl, __NR_munmap, NULL, map,
compel_syscall(ctl, __NR_munmap, NULL, map,
length, 0, 0, 0, 0);
map = 0;
}
......
......@@ -99,7 +99,7 @@ char *mnt_get_sibling_path(struct mount_info *m,
rpath++;
if (rpath[0] != '\0')
off = snprintf(path, len, "/%s", rpath);
snprintf(path, len, "/%s", rpath);
return buf;
}
......@@ -143,8 +143,8 @@ int main(int argc, char **argv)
return 1;
}
ret = execl(argv[0], "dumpable_server", NULL);
pr_perror("could not execv %s as a dumpable_server", argv[0]);
execl(argv[0], "dumpable_server", NULL);
pr_perror("could not execv %s as a dumpable_server\nError No: %d", argv[0], errno);
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment