Skip to content

Commit 6e12adc

Browse files
Lotte-Bairichardweinberger
authored andcommitted
um: remove unused variable
The variable dead is initialized but never used otherwise. Signed-off-by: Haowen Bai <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent c6496e0 commit 6e12adc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/um/os-Linux/umid.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int remove_files_and_dir(char *dir)
136136
static inline int is_umdir_used(char *dir)
137137
{
138138
char pid[sizeof("nnnnnnnnn")], *end, *file;
139-
int dead, fd, p, n, err;
139+
int fd, p, n, err;
140140
size_t filelen = strlen(dir) + sizeof("/pid") + 1;
141141

142142
file = malloc(filelen);
@@ -145,7 +145,6 @@ static inline int is_umdir_used(char *dir)
145145

146146
snprintf(file, filelen, "%s/pid", dir);
147147

148-
dead = 0;
149148
fd = open(file, O_RDONLY);
150149
if (fd < 0) {
151150
fd = -errno;

0 commit comments

Comments
 (0)