aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c8
-rw-r--r--modutils/rmmod.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 50b5dd18e..adfbd33fe 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -3410,7 +3410,7 @@ static struct obj_file *obj_load(FILE * fp, int loadprogbits)
3410 sec->header = section_headers[i]; 3410 sec->header = section_headers[i];
3411 sec->idx = i; 3411 sec->idx = i;
3412 3412
3413 if(sec->header.sh_size) { 3413 if (sec->header.sh_size) {
3414 switch (sec->header.sh_type) { 3414 switch (sec->header.sh_type) {
3415 case SHT_NULL: 3415 case SHT_NULL:
3416 case SHT_NOTE: 3416 case SHT_NOTE:
@@ -4219,17 +4219,17 @@ int insmod_main( int argc, char **argv)
4219 goto out; 4219 goto out;
4220 } 4220 }
4221 4221
4222 if(flag_print_load_map) 4222 if (flag_print_load_map)
4223 print_load_map(f); 4223 print_load_map(f);
4224 4224
4225 exit_status = EXIT_SUCCESS; 4225 exit_status = EXIT_SUCCESS;
4226 4226
4227out: 4227out:
4228#if ENABLE_FEATURE_CLEAN_UP 4228#if ENABLE_FEATURE_CLEAN_UP
4229 if(fp) 4229 if (fp)
4230 fclose(fp); 4230 fclose(fp);
4231 free(tmp1); 4231 free(tmp1);
4232 if(!tmp1) 4232 if (!tmp1)
4233 free(m_name); 4233 free(m_name);
4234 free(m_filename); 4234 free(m_filename);
4235#endif 4235#endif
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 0a67b8965..67cf58c3b 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -46,11 +46,11 @@ int rmmod_main(int argc, char **argv)
46 46
47 /* Parse command line. */ 47 /* Parse command line. */
48 n = getopt32(argc, argv, "wfa"); 48 n = getopt32(argc, argv, "wfa");
49 if((n & 1)) // --wait 49 if (n & 1) // --wait
50 flags &= ~O_NONBLOCK; 50 flags &= ~O_NONBLOCK;
51 if((n & 2)) // --force 51 if (n & 2) // --force
52 flags |= O_TRUNC; 52 flags |= O_TRUNC;
53 if((n & 4)) { 53 if (n & 4) {
54 /* Unload _all_ unused modules via NULL delete_module() call */ 54 /* Unload _all_ unused modules via NULL delete_module() call */
55 /* until the number of modules does not change */ 55 /* until the number of modules does not change */
56 size_t nmod = 0; /* number of modules */ 56 size_t nmod = 0; /* number of modules */