diff options
-rw-r--r-- | arch/um/os-Linux/mem.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c index 82b874580f63..f1ea169db85e 100644 --- a/arch/um/os-Linux/mem.c +++ b/arch/um/os-Linux/mem.c | |||
@@ -35,7 +35,8 @@ static void __init find_tempdir(void) | |||
35 | int i; | 35 | int i; |
36 | char *dir = NULL; | 36 | char *dir = NULL; |
37 | 37 | ||
38 | if(tempdir != NULL) return; /* We've already been called */ | 38 | if(tempdir != NULL) /* We've already been called */ |
39 | return; | ||
39 | for(i = 0; dirs[i]; i++){ | 40 | for(i = 0; dirs[i]; i++){ |
40 | dir = getenv(dirs[i]); | 41 | dir = getenv(dirs[i]); |
41 | if((dir != NULL) && (*dir != '\0')) | 42 | if((dir != NULL) && (*dir != '\0')) |
@@ -193,7 +194,7 @@ int make_tempfile(const char *template, char **out_tempname, int do_unlink) | |||
193 | } else { | 194 | } else { |
194 | free(tempname); | 195 | free(tempname); |
195 | } | 196 | } |
196 | return(fd); | 197 | return fd; |
197 | out: | 198 | out: |
198 | free(tempname); | 199 | free(tempname); |
199 | return -1; | 200 | return -1; |
@@ -238,7 +239,7 @@ int create_tmp_file(unsigned long long len) | |||
238 | exit(1); | 239 | exit(1); |
239 | } | 240 | } |
240 | 241 | ||
241 | return(fd); | 242 | return fd; |
242 | } | 243 | } |
243 | 244 | ||
244 | int create_mem_file(unsigned long long len) | 245 | int create_mem_file(unsigned long long len) |
@@ -252,7 +253,7 @@ int create_mem_file(unsigned long long len) | |||
252 | errno = -err; | 253 | errno = -err; |
253 | perror("exec_close"); | 254 | perror("exec_close"); |
254 | } | 255 | } |
255 | return(fd); | 256 | return fd; |
256 | } | 257 | } |
257 | 258 | ||
258 | 259 | ||