diff --git a/net/phonet/pep.c b/net/phonet/pep.c
index 9c903f9e5079a303b691182d26df542ac8cd5b0f..3e60f2e4e6c2d1e5982b2a56aed64fc38aa49259 100644
--- a/net/phonet/pep.c
+++ b/net/phonet/pep.c
@@ -300,7 +300,6 @@ static int pipe_handler_send_ind(struct sock *sk, u8 utid, u8 msg_id)
 
 static int pipe_handler_enable_pipe(struct sock *sk, int enable)
 {
-	struct pep_sock *pn = pep_sk(sk);
 	int utid, req;
 
 	if (enable) {