Commit 81999a01 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] uml: fix style violations

Fix a bunch of style violations in mem.c.
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 73c8f444
...@@ -35,7 +35,8 @@ static void __init find_tempdir(void) ...@@ -35,7 +35,8 @@ static void __init find_tempdir(void)
int i; int i;
char *dir = NULL; 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++){ for(i = 0; dirs[i]; i++){
dir = getenv(dirs[i]); dir = getenv(dirs[i]);
if((dir != NULL) && (*dir != '\0')) if((dir != NULL) && (*dir != '\0'))
...@@ -193,7 +194,7 @@ int make_tempfile(const char *template, char **out_tempname, int do_unlink) ...@@ -193,7 +194,7 @@ int make_tempfile(const char *template, char **out_tempname, int do_unlink)
} else { } else {
free(tempname); free(tempname);
} }
return(fd); return fd;
out: out:
free(tempname); free(tempname);
return -1; return -1;
...@@ -238,7 +239,7 @@ int create_tmp_file(unsigned long long len) ...@@ -238,7 +239,7 @@ int create_tmp_file(unsigned long long len)
exit(1); exit(1);
} }
return(fd); return fd;
} }
int create_mem_file(unsigned long long len) int create_mem_file(unsigned long long len)
...@@ -252,7 +253,7 @@ int create_mem_file(unsigned long long len) ...@@ -252,7 +253,7 @@ int create_mem_file(unsigned long long len)
errno = -err; errno = -err;
perror("exec_close"); perror("exec_close");
} }
return(fd); return fd;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment