mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
um: remove unused variable
The variable dead is initialized but never used otherwise. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
c6496e0a4a
commit
6e12adcc61
@ -136,7 +136,7 @@ out:
|
||||
static inline int is_umdir_used(char *dir)
|
||||
{
|
||||
char pid[sizeof("nnnnnnnnn")], *end, *file;
|
||||
int dead, fd, p, n, err;
|
||||
int fd, p, n, err;
|
||||
size_t filelen = strlen(dir) + sizeof("/pid") + 1;
|
||||
|
||||
file = malloc(filelen);
|
||||
@ -145,7 +145,6 @@ static inline int is_umdir_used(char *dir)
|
||||
|
||||
snprintf(file, filelen, "%s/pid", dir);
|
||||
|
||||
dead = 0;
|
||||
fd = open(file, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
fd = -errno;
|
||||
|
Loading…
Reference in New Issue
Block a user