Skip to content

Commit

Permalink
net: PPPoPNS: use updated data_ready API definition
Browse files Browse the repository at this point in the history
data_ready(struct sock *) no longer takes a length argument.
Remove length argument in the implementation of this function
in PPPoPNS. It was never used anyway.

Change-Id: I457cedd375a490dd85e60f172b4122b4c7ba36f0
Signed-off-by: Matt Wagantall <[email protected]>
  • Loading branch information
Matt Wagantall authored and elektroschmock committed Mar 7, 2019
1 parent c266c57 commit 7f63ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ppp/pppopns.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static int pppopns_recv_core(struct sock *sk_raw, struct sk_buff *skb)
return NET_RX_DROP;
}

static void pppopns_recv(struct sock *sk_raw, int length)
static void pppopns_recv(struct sock *sk_raw)
{
struct sk_buff *skb;
while ((skb = skb_dequeue(&sk_raw->sk_receive_queue))) {
Expand Down
2 changes: 1 addition & 1 deletion include/linux/if_pppox.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct pppopns_opt {
__u16 remote;
__u32 recv_sequence;
__u32 xmit_sequence;
void (*data_ready)(struct sock *sk_raw, int length);
void (*data_ready)(struct sock *sk_raw);
int (*backlog_rcv)(struct sock *sk_raw, struct sk_buff *skb);
};

Expand Down

0 comments on commit 7f63ee8

Please sign in to comment.