diff options
| author | Alex Shi <alexs@kernel.org> | 2026-01-07 14:40:09 +0800 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-01-13 19:43:41 +0100 |
| commit | 68e25613ed4d06c987a42b0589f54ce88c13477c (patch) | |
| tree | a17ec993075b8f4a2ddf1c3746eef86a7ef6da66 | |
| parent | 7ede6f1494cb148e42f893dd43e4911508814510 (diff) | |
arch/um: remove unused varible err in remove_files_and_dir()
err is duplicated with errno, and never used; remove it.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alex Shi <alexs@kernel.org>
Link: https://patch.msgid.link/20260107064009.15380-1-alexs@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
| -rw-r--r-- | arch/um/os-Linux/umid.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/os-Linux/umid.c b/arch/um/os-Linux/umid.c index eb523ab1e218..6b488be2c545 100644 --- a/arch/um/os-Linux/umid.c +++ b/arch/um/os-Linux/umid.c @@ -136,7 +136,7 @@ out: static inline int is_umdir_used(char *dir) { char pid[sizeof("nnnnnnnnn")], *end, *file; - int fd, p, n, err; + int fd, p, n; size_t filelen = strlen(dir) + sizeof("/pid") + 1; file = malloc(filelen); @@ -155,7 +155,6 @@ static inline int is_umdir_used(char *dir) goto out; } - err = 0; n = read(fd, pid, sizeof(pid)); if (n < 0) { printk(UM_KERN_ERR "is_umdir_used : couldn't read pid file " |
