dect
/
linux-2.6
Archived
13
0
Fork 0

phonet: Protect pipe_do_remove() with appropriate ifdefs.

It is only used when CONFIG_PHONET_PIPECTRLR is not set.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2011-02-25 11:23:22 -08:00
parent 8f44fcc72a
commit 004971353a
1 changed files with 2 additions and 0 deletions

View File

@ -849,6 +849,7 @@ drop:
return err;
}
#ifndef CONFIG_PHONET_PIPECTRLR
static int pipe_do_remove(struct sock *sk)
{
struct pep_sock *pn = pep_sk(sk);
@ -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)