diff options
author | maximilian attems <max@stro.at> | 2011-07-05 19:31:02 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-07-06 20:41:22 +0200 |
commit | 377dd4e8c660dd3350efcc4144019cd100e5ad3a (patch) | |
tree | 3db8eb96bfdc871657bde241b3502887106c9d44 | |
parent | 6cb28af95367ca97f5ddc1cdc1b22bd3a6f9ef5f (diff) | |
download | klibc-377dd4e8c660dd3350efcc4144019cd100e5ad3a.tar.gz |
[klibc] fstpye: no need for braces around return values
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/kinit/fstype/fstype.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c index 451d60c211bae..9f0f93167706b 100644 --- a/usr/kinit/fstype/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -124,7 +124,7 @@ static int fs_proc_check(const char *fs_name) f = fopen("/proc/filesystems", "r"); if (!f) - return (0); + return 0; while (fgets(buf, sizeof(buf), f)) { cp = buf; if (!isspace(*cp)) { @@ -141,11 +141,11 @@ static int fs_proc_check(const char *fs_name) *t = 0; if (!strcmp(fs_name, cp)) { fclose(f); - return (1); + return 1; } } fclose(f); - return (0); + return 0; } /* @@ -160,12 +160,12 @@ static int check_for_modules(const char *fs_name) int i; if (uname(&uts)) - return (0); + return 0; snprintf(buf, sizeof(buf), "/lib/modules/%s/modules.dep", uts.release); f = fopen(buf, "r"); if (!f) - return (0); + return 0; while (fgets(buf, sizeof(buf), f)) { if ((cp = strchr(buf, ':')) != NULL) *cp = 0; @@ -181,11 +181,11 @@ static int check_for_modules(const char *fs_name) } if (!strcmp(cp, fs_name)) { fclose(f); - return (1); + return 1; } } fclose(f); - return (0); + return 0; } static int base_ext4_image(const void *buf, unsigned long long *bytes, |