*: more empty lines removed. no code changes
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 25 Jul 2010 23:35:44 +0000 (01:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 25 Jul 2010 23:35:44 +0000 (01:35 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/lzo1x_9x.c
e2fsprogs/old_e2fsprogs/ext2fs/rw_bitmaps.c
networking/interface.c
networking/ntpd.c
scripts/find_stray_empty_lines [new file with mode: 0755]

index 0baed5469284df93e6f3f0acdaac733ab02c2311..483205155989dfe624a26e4e8ea71c2f8192a400 100644 (file)
@@ -675,7 +675,6 @@ static int min_gain(unsigned ahead, unsigned lit1,
 static void better_match(const lzo_swd_p swd,
                           unsigned *m_len, unsigned *m_off)
 {
-
        if (*m_len <= M2_MIN_LEN)
                return;
 
index b618acc5b230623daf780da39dfc3894dfeab474..bba4326796d3d7af1708b14a9c8e4457b5325d5f 100644 (file)
@@ -266,7 +266,6 @@ errcode_t ext2fs_read_block_bitmap(ext2_filsys fs)
 
 errcode_t ext2fs_read_bitmaps(ext2_filsys fs)
 {
-
        EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
 
        if (fs->inode_map && fs->block_map)
index 659ac36ea651896ea5467323bd6aafc26fa8a4b2..7c6ed82df800e7bfc7b15710d8e7d88e9898fcc2 100644 (file)
@@ -927,7 +927,6 @@ static void print_bytes_scaled(unsigned long long ull, const char *end)
 
 static void ife_print6(struct interface *ptr)
 {
-
        FILE *f;
        char addr6[40], devname[20];
        struct sockaddr_in6 sap;
index d00ee49e5748784ea211c4a5bfb724f13517ef6b..e9cfdbddd1ebf645b16b8462f7ddad80478ed7a8 100644 (file)
@@ -2060,7 +2060,6 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
 static double
 direct_freq(double fp_offset)
 {
-
 #ifdef KERNEL_PLL
        /*
         * If the kernel is enabled, we need the residual offset to
diff --git a/scripts/find_stray_empty_lines b/scripts/find_stray_empty_lines
new file mode 100755 (executable)
index 0000000..58daf2f
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+grep -n -B1 -r $'^\t*}$' . | grep -A1 '.[ch]-[0-9]*-$'
+grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$'
+# or (less surefire ones):
+grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$'
+grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$'