From: Alex Shi Date: Wed, 7 Jan 2026 06:40:09 +0000 (+0800) Subject: arch/um: remove unused varible err in remove_files_and_dir() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e25613ed4d06c987a42b0589f54ce88c13477c;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Alex Shi Link: https://patch.msgid.link/20260107064009.15380-1-alexs@kernel.org Signed-off-by: Johannes Berg --- 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 "