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 94500cf..4e9eb30 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);