mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user