diff options
Diffstat (limited to 'src/udev/udev-builtin-kmod.c')
-rw-r--r-- | src/udev/udev-builtin-kmod.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/udev/udev-builtin-kmod.c b/src/udev/udev-builtin-kmod.c index 5880c38842..454ee2edff 100644 --- a/src/udev/udev-builtin-kmod.c +++ b/src/udev/udev-builtin-kmod.c @@ -33,8 +33,7 @@ static struct kmod_ctx *ctx; -static int load_module(struct udev *udev, const char *alias) -{ +static int load_module(struct udev *udev, const char *alias) { struct kmod_list *list = NULL; struct kmod_list *l; int err; @@ -66,13 +65,11 @@ static int load_module(struct udev *udev, const char *alias) _printf_(6,0) static void udev_kmod_log(void *data, int priority, const char *file, int line, - const char *fn, const char *format, va_list args) -{ + const char *fn, const char *format, va_list args) { udev_main_log(data, priority, file, line, fn, format, args); } -static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool test) -{ +static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool test) { struct udev *udev = udev_device_get_udev(dev); int i; @@ -93,8 +90,7 @@ static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool te } /* called at udev startup and reload */ -static int builtin_kmod_init(struct udev *udev) -{ +static int builtin_kmod_init(struct udev *udev) { if (ctx) return 0; @@ -109,15 +105,13 @@ static int builtin_kmod_init(struct udev *udev) } /* called on udev shutdown and reload request */ -static void builtin_kmod_exit(struct udev *udev) -{ +static void builtin_kmod_exit(struct udev *udev) { log_debug("unload module index"); ctx = kmod_unref(ctx); } /* called every couple of seconds during event activity; 'true' if config has changed */ -static bool builtin_kmod_validate(struct udev *udev) -{ +static bool builtin_kmod_validate(struct udev *udev) { log_debug("validate module index"); if (!ctx) return false; |