lib: textsearch: fix escapes in example code
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 3 Oct 2019 00:08:18 +0000 (17:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:19:35 +0000 (09:19 +0100)
commit0cb5c7b06a0a5e3f3699673e49410a71cdbdf189
treeb3b65c2bd3ea776224f1cef8209534a6a22113b9
parent50699af3609ce776d042c409153081679cdf22d0
lib: textsearch: fix escapes in example code

[ Upstream commit 2105b52e30debe7f19f3218598d8ae777dcc6776 ]

This textsearch code example does not need the '\' escapes and they can
be misleading to someone reading the example. Also, gcc and sparse warn
that the "\%d" is an unknown escape sequence.

Fixes: 5968a70d7af5 ("textsearch: fix kernel-doc warnings and add kernel-api section")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/textsearch.c