From 0bd0689270564fff226ec22c5f0c8b7b58732a36 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Tue, 1 Sep 2020 21:45:35 +0000 Subject: [PATCH] wtap: clean up empty lines in .c and .h files --- sys/dev/wtap/if_wtap_module.c | 3 --- sys/dev/wtap/plugins/visibility.c | 3 --- sys/dev/wtap/plugins/visibility.h | 1 - sys/dev/wtap/plugins/visibility_ioctl.h | 1 - sys/dev/wtap/plugins/wtap_plugin.h | 2 -- sys/dev/wtap/wtap_hal/hal.c | 1 - sys/dev/wtap/wtap_hal/hal.h | 2 -- sys/dev/wtap/wtap_hal/handler.h | 1 - 8 files changed, 14 deletions(-) diff --git a/sys/dev/wtap/if_wtap_module.c b/sys/dev/wtap/if_wtap_module.c index 043e42ea74e1..1f97d67d56ce 100644 --- a/sys/dev/wtap/if_wtap_module.c +++ b/sys/dev/wtap/if_wtap_module.c @@ -70,12 +70,10 @@ #include - #include #include /* cdevsw struct */ #include /* uio struct */ - #include #include @@ -132,7 +130,6 @@ wtap_ioctl(struct cdev *dev, u_long cmd, caddr_t data, return error; } - /* The function called at load/unload. */ static int event_handler(module_t module, int event, void *arg) diff --git a/sys/dev/wtap/plugins/visibility.c b/sys/dev/wtap/plugins/visibility.c index de94e710b262..d627e55d43f5 100644 --- a/sys/dev/wtap/plugins/visibility.c +++ b/sys/dev/wtap/plugins/visibility.c @@ -70,7 +70,6 @@ #include - #include #include /* cdevsw struct */ #include /* uio struct */ @@ -200,7 +199,6 @@ del_link(struct visibility_plugin *vis_plugin, struct link *l) #endif } - int vis_ioctl(struct cdev *sdev, u_long cmd, caddr_t data, int fflag, struct thread *td) @@ -239,4 +237,3 @@ vis_ioctl(struct cdev *sdev, u_long cmd, caddr_t data, CURVNET_RESTORE(); return error; } - diff --git a/sys/dev/wtap/plugins/visibility.h b/sys/dev/wtap/plugins/visibility.h index 920c495fcf05..7ae5864692f2 100644 --- a/sys/dev/wtap/plugins/visibility.h +++ b/sys/dev/wtap/plugins/visibility.h @@ -55,4 +55,3 @@ void visibility_deinit(struct wtap_plugin *); void visibility_work(struct wtap_plugin *, struct packet *); #endif - diff --git a/sys/dev/wtap/plugins/visibility_ioctl.h b/sys/dev/wtap/plugins/visibility_ioctl.h index 7c53fcd69c88..342a4ec45f51 100644 --- a/sys/dev/wtap/plugins/visibility_ioctl.h +++ b/sys/dev/wtap/plugins/visibility_ioctl.h @@ -50,4 +50,3 @@ struct link { #define VISIOCTLLINK _IOW('W', 4, struct link) // #endif - diff --git a/sys/dev/wtap/plugins/wtap_plugin.h b/sys/dev/wtap/plugins/wtap_plugin.h index aa286e82accf..34d871aa6ab1 100644 --- a/sys/dev/wtap/plugins/wtap_plugin.h +++ b/sys/dev/wtap/plugins/wtap_plugin.h @@ -37,7 +37,6 @@ #include "../if_medium.h" #include "../wtap_hal/hal.h" - struct wtap_plugin { struct cdev *wp_sdev; struct wtap_hal *wp_hal; @@ -47,4 +46,3 @@ struct wtap_plugin { }; #endif - diff --git a/sys/dev/wtap/wtap_hal/hal.c b/sys/dev/wtap/wtap_hal/hal.c index b76fae1d6299..7c9205848665 100644 --- a/sys/dev/wtap/wtap_hal/hal.c +++ b/sys/dev/wtap/wtap_hal/hal.c @@ -214,4 +214,3 @@ free_wtap(struct wtap_hal *hal, int32_t id) hal->hal_devs[id] = NULL; return 0; } - diff --git a/sys/dev/wtap/wtap_hal/hal.h b/sys/dev/wtap/wtap_hal/hal.h index f03e92de4d23..8446bdbcdd1a 100644 --- a/sys/dev/wtap/wtap_hal/hal.h +++ b/sys/dev/wtap/wtap_hal/hal.h @@ -52,6 +52,4 @@ void deregister_plugin(struct wtap_hal *); int32_t new_wtap(struct wtap_hal *, int32_t id); int32_t free_wtap(struct wtap_hal *, int32_t id); - #endif - diff --git a/sys/dev/wtap/wtap_hal/handler.h b/sys/dev/wtap/wtap_hal/handler.h index 6ffc58af36ed..b25feb7a9879 100644 --- a/sys/dev/wtap/wtap_hal/handler.h +++ b/sys/dev/wtap/wtap_hal/handler.h @@ -49,4 +49,3 @@ struct eventhandler { }; #endif -