From 154221aba3bd1407ea60ef6b3d73a59143182e36 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 22 Jan 2019 18:21:23 -0800 Subject: Whitespace: remove tabs from indentation. I accidentally added a tab in xargs.c, so as penance I'll clean up all the tabs. --- toys/pending/modprobe.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'toys/pending/modprobe.c') diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c index 923026ba..1d5479fd 100644 --- a/toys/pending/modprobe.c +++ b/toys/pending/modprobe.c @@ -66,7 +66,7 @@ static char *path2mod(char *file, char *mod) if (!file) return NULL; if (!mod) mod = xmalloc(MODNAME_LEN); - + from = getbasename(file); for (i = 0; i < (MODNAME_LEN-1) && from[i] && from[i] != '.'; i++) @@ -375,8 +375,8 @@ static int ins_mod(char *modules, char *flags) #ifdef __NR_finit_module res = syscall(__NR_finit_module, fd, toybuf, 0); if (!res || errno != ENOSYS) { - xclose(fd); - return res; + xclose(fd); + return res; } #endif @@ -507,7 +507,7 @@ void modprobe_main(void) if ((toys.optc < 1) && (((flags & FLAG_r) && (flags & FLAG_l)) ||(!((flags & FLAG_r)||(flags & FLAG_l))))) { - help_exit("bad syntax"); + help_exit("bad syntax"); } // Check for -r flag without arg if yes then do auto remove. if ((flags & FLAG_r) && !toys.optc) { @@ -525,8 +525,7 @@ void modprobe_main(void) if (flags & FLAG_l) { for (dirs = TT.dirs; dirs; dirs = dirs->next) { xchdir(dirs->arg); - if (!depmode_read_entry(toys.optargs[0])) - return; + if (!depmode_read_entry(toys.optargs[0])) return; } error_exit("no module found."); } @@ -563,8 +562,8 @@ void modprobe_main(void) } for (dirs = TT.dirs; dirs; dirs = dirs->next) { - xchdir(dirs->arg); - find_dep(); + xchdir(dirs->arg); + find_dep(); } while ((module = llist_popme(&TT.probes))) { -- cgit v1.2.3