mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01: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:
parent
7ede6f1494
commit
68e25613ed
1 changed files with 1 additions and 2 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue