diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 16:49:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 16:49:31 +0000 |
commit | 079f8afa0a16112cbaf7012c82b38b7358b82141 (patch) | |
tree | 0d8cba8e45b1a8b975e0b8c7a8377703ab5547a6 /modutils/insmod.c | |
parent | 10d0d4eec7e3a292917f43f72afae20341d9ba11 (diff) |
style cleanup: return(a) -> return a, part 1
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r-- | modutils/insmod.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index f6ab44309..dd999a672 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -3632,9 +3632,9 @@ static int obj_gpl_license(struct obj_file *f, const char **license) *license = value+1; for (i = 0; i < sizeof(gpl_licenses)/sizeof(gpl_licenses[0]); ++i) { if (strcmp(value+1, gpl_licenses[i]) == 0) - return(0); + return 0; } - return(2); + return 2; } if (strchr(ptr, '\0')) ptr = strchr(ptr, '\0') + 1; @@ -3642,7 +3642,7 @@ static int obj_gpl_license(struct obj_file *f, const char **license) ptr = endptr; } } - return(1); + return 1; } #define TAINT_FILENAME "/proc/sys/kernel/tainted" @@ -4227,12 +4227,11 @@ out: if(fp) fclose(fp); free(tmp1); - if(!tmp1) { + if(!tmp1) free(m_name); - } free(m_filename); #endif - return(exit_status); + return exit_status; } |