[PATCH 5/5] lib: remove trailing spaces and tabs

From: Zhen Lei
Date: Tue Jun 08 2021 - 03:11:50 EST


Run the following command to find and remove the trailing spaces and tabs:

find lib/ -type f | xargs sed -r -i 's/[ \t]+$//'

Signed-off-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>
---
lib/Kconfig | 2 +-
lib/libcrc32c.c | 2 +-
lib/textsearch.c | 4 ++--
lib/ts_kmp.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index ac3b30697b2b..b0807d988491 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -357,7 +357,7 @@ config GENERIC_ALLOCATOR
#
config REED_SOLOMON
tristate
-
+
config REED_SOLOMON_ENC8
bool

diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c
index 5ca0d815a95d..824415b757c2 100644
--- a/lib/libcrc32c.c
+++ b/lib/libcrc32c.c
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
-/*
+/*
* CRC32C
*@Article{castagnoli-crc,
* author = { Guy Castagnoli and Stefan Braeuer and Martin Herrman},
diff --git a/lib/textsearch.c b/lib/textsearch.c
index f68dea8806be..d8dae46b75a5 100644
--- a/lib/textsearch.c
+++ b/lib/textsearch.c
@@ -266,7 +266,7 @@ struct ts_config *textsearch_prepare(const char *algo, const void *pattern,
int err = -ENOENT;
struct ts_config *conf;
struct ts_ops *ops;
-
+
if (len == 0)
return ERR_PTR(-EINVAL);

@@ -298,7 +298,7 @@ struct ts_config *textsearch_prepare(const char *algo, const void *pattern,
errout:
if (ops)
module_put(ops->owner);
-
+
return ERR_PTR(err);
}
EXPORT_SYMBOL(textsearch_prepare);
diff --git a/lib/ts_kmp.c b/lib/ts_kmp.c
index c77a3d537f24..c57511d5fc7a 100644
--- a/lib/ts_kmp.c
+++ b/lib/ts_kmp.c
@@ -5,7 +5,7 @@
* Authors: Thomas Graf <tgraf@xxxxxxx>
*
* ==========================================================================
- *
+ *
* Implements a linear-time string-matching algorithm due to Knuth,
* Morris, and Pratt [1]. Their algorithm avoids the explicit
* computation of the transition function DELTA altogether. Its
--
2.25.1