* [PATCH] net: xfrm: xfrm_algo: Remove unused function
@ 2015-01-11 13:03 Rickard Strandqvist
2015-01-12 22:02 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Rickard Strandqvist @ 2015-01-11 13:03 UTC (permalink / raw)
To: Steffen Klassert, Herbert Xu
Cc: Rickard Strandqvist, David S. Miller, netdev, linux-kernel
Remove the function aead_entries() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
net/xfrm/xfrm_algo.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
index debe733..12e82a5 100644
--- a/net/xfrm/xfrm_algo.c
+++ b/net/xfrm/xfrm_algo.c
@@ -561,11 +561,6 @@ static struct xfrm_algo_desc calg_list[] = {
},
};
-static inline int aead_entries(void)
-{
- return ARRAY_SIZE(aead_list);
-}
-
static inline int aalg_entries(void)
{
return ARRAY_SIZE(aalg_list);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: xfrm: xfrm_algo: Remove unused function
2015-01-11 13:03 [PATCH] net: xfrm: xfrm_algo: Remove unused function Rickard Strandqvist
@ 2015-01-12 22:02 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-01-12 22:02 UTC (permalink / raw)
To: rickard_strandqvist; +Cc: steffen.klassert, herbert, netdev, linux-kernel
From: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Date: Sun, 11 Jan 2015 14:03:35 +0100
> Remove the function aead_entries() that is not used anywhere.
>
> This was partially found by using a static code analysis program called cppcheck.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-12 22:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-11 13:03 [PATCH] net: xfrm: xfrm_algo: Remove unused function Rickard Strandqvist
2015-01-12 22:02 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).