diff options
author | Johannes Berg <johannes.berg@intel.com> | 2024-03-28 10:06:35 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-04-22 22:26:41 +0200 |
commit | e3cce8d87d6407f83a5741c3c5d54bf1365c6ac6 (patch) | |
tree | 9f24d11389843a61e4e14c816d19a927077a821d /arch/um | |
parent | um: signal: move pid variable where needed (diff) | |
download | linux-e3cce8d87d6407f83a5741c3c5d54bf1365c6ac6.tar.xz linux-e3cce8d87d6407f83a5741c3c5d54bf1365c6ac6.zip |
um: slirp: remove set but unused variable 'pid'
The code doesn't use 'pid' here, just remove it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/slirp_user.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/drivers/slirp_user.c b/arch/um/drivers/slirp_user.c index 8f633e2e5f3d..97228aa080cb 100644 --- a/arch/um/drivers/slirp_user.c +++ b/arch/um/drivers/slirp_user.c @@ -49,7 +49,7 @@ static int slirp_tramp(char **argv, int fd) static int slirp_open(void *data) { struct slirp_data *pri = data; - int fds[2], pid, err; + int fds[2], err; err = os_pipe(fds, 1, 1); if (err) @@ -60,7 +60,6 @@ static int slirp_open(void *data) printk(UM_KERN_ERR "slirp_tramp failed - errno = %d\n", -err); goto out; } - pid = err; pri->slave = fds[1]; pri->slip.pos = 0; |