Skip to content

Commit

Permalink
[PKTGEN]: make get_ipsec_sa() static and non-inline
Browse files Browse the repository at this point in the history
Non-static inline code usually doesn't makes sense.

In this case making is static and non-inline is the correct solution.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Jul 31, 2007
1 parent 8aeca8f commit fea1ab0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2159,8 +2159,7 @@ static inline int f_pick(struct pktgen_dev *pkt_dev)
/* If there was already an IPSEC SA, we keep it as is, else
* we go look for it ...
*/
inline
void get_ipsec_sa(struct pktgen_dev *pkt_dev, int flow)
static void get_ipsec_sa(struct pktgen_dev *pkt_dev, int flow)
{
struct xfrm_state *x = pkt_dev->flows[flow].x;
if (!x) {
Expand Down

0 comments on commit fea1ab0

Please sign in to comment.