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>
This commit is contained in:
Alex Shi 2026-01-07 14:40:09 +08:00 committed by Johannes Berg
parent 7ede6f1494
commit 68e25613ed

View file

@ -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 "