Commit 00497135 authored by David S. Miller's avatar David S. Miller

phonet: Protect pipe_do_remove() with appropriate ifdefs.

It is only used when CONFIG_PHONET_PIPECTRLR is not set.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8f44fcc7
...@@ -849,6 +849,7 @@ static int pep_do_rcv(struct sock *sk, struct sk_buff *skb) ...@@ -849,6 +849,7 @@ static int pep_do_rcv(struct sock *sk, struct sk_buff *skb)
return err; return err;
} }
#ifndef CONFIG_PHONET_PIPECTRLR
static int pipe_do_remove(struct sock *sk) static int pipe_do_remove(struct sock *sk)
{ {
struct pep_sock *pn = pep_sk(sk); struct pep_sock *pn = pep_sk(sk);
...@@ -870,6 +871,7 @@ static int pipe_do_remove(struct sock *sk) ...@@ -870,6 +871,7 @@ static int pipe_do_remove(struct sock *sk)
return pn_skb_send(sk, skb, NULL); return pn_skb_send(sk, skb, NULL);
} }
#endif
/* associated socket ceases to exist */ /* associated socket ceases to exist */
static void pep_sock_close(struct sock *sk, long timeout) static void pep_sock_close(struct sock *sk, long timeout)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment