Skip to content

Commit

Permalink
phonet: Protect pipe_do_remove() with appropriate ifdefs.
Browse files Browse the repository at this point in the history
It is only used when CONFIG_PHONET_PIPECTRLR is not set.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Feb 25, 2011
1 parent 8f44fcc commit 0049713
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/phonet/pep.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ static int pep_do_rcv(struct sock *sk, struct sk_buff *skb)
return err;
}

#ifndef CONFIG_PHONET_PIPECTRLR
static int pipe_do_remove(struct sock *sk)
{
struct pep_sock *pn = pep_sk(sk);
Expand All @@ -870,6 +871,7 @@ static int pipe_do_remove(struct sock *sk)

return pn_skb_send(sk, skb, NULL);
}
#endif

/* associated socket ceases to exist */
static void pep_sock_close(struct sock *sk, long timeout)
Expand Down

0 comments on commit 0049713

Please sign in to comment.