Skip to content

Commit

Permalink
[PATCH] uml: fix style violations
Browse files Browse the repository at this point in the history
Fix a bunch of style violations in mem.c.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 11, 2007
1 parent 73c8f44 commit 81999a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arch/um/os-Linux/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ static void __init find_tempdir(void)
int i;
char *dir = NULL;

if(tempdir != NULL) return; /* We've already been called */
if(tempdir != NULL) /* We've already been called */
return;
for(i = 0; dirs[i]; i++){
dir = getenv(dirs[i]);
if((dir != NULL) && (*dir != '\0'))
Expand Down Expand Up @@ -193,7 +194,7 @@ int make_tempfile(const char *template, char **out_tempname, int do_unlink)
} else {
free(tempname);
}
return(fd);
return fd;
out:
free(tempname);
return -1;
Expand Down Expand Up @@ -238,7 +239,7 @@ int create_tmp_file(unsigned long long len)
exit(1);
}

return(fd);
return fd;
}

int create_mem_file(unsigned long long len)
Expand All @@ -252,7 +253,7 @@ int create_mem_file(unsigned long long len)
errno = -err;
perror("exec_close");
}
return(fd);
return fd;
}


Expand Down

0 comments on commit 81999a0

Please sign in to comment.