]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
modprobe: avoid breaking on insertion failure
authorDave Reisner <dreisner@archlinux.org>
Fri, 3 Feb 2012 13:15:36 +0000 (08:15 -0500)
committerDave Reisner <dreisner@archlinux.org>
Fri, 3 Feb 2012 14:10:13 +0000 (09:10 -0500)
tools/kmod-modprobe.c

index 94500cf602195b536f4f766e8cf4e6faa404c006..4e9eb304cbdb88ced7914d0cf4ad77d44ba35386 100644 (file)
@@ -608,8 +608,6 @@ static int insmod(struct kmod_ctx *ctx, const char *alias,
                }
 
                kmod_module_unref(mod);
-               if (err != 0)
-                       break;
        }
 
        kmod_module_unref_list(list);