net: PPPoPNS: use updated data_ready API definition
authorMatt Wagantall <mattw@codeaurora.org>
Thu, 2 Jul 2015 02:43:51 +0000 (19:43 -0700)
committerDanny Wood <danwood76@gmail.com>
Thu, 15 Jul 2021 09:45:37 +0000 (10:45 +0100)
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 <mattw@codeaurora.org>
drivers/net/ppp/pppopns.c
include/linux/if_pppox.h

index edadaf198226d38bfb3a9a2ab10ce6092385eb9d..792539cc1d2d2350fc61ea74260ff3b340bb3127 100644 (file)
@@ -220,7 +220,7 @@ drop:
        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))) {
index 845b84dab1d180e37bdc46cb5f5c0f49e8238078..9ada3f864d122b3a823341e56ea3d50296660983 100644 (file)
@@ -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);
        int             ppp_flags;
 };