Staging: et131x: config is already zeroed
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / net / ppp_generic.c
index 7dd0868f983ae8df9a3578db8554b7d2b2cba51e..9bf2a6be90319b2cd9249c3acfbaf2a78c56d79f 100644 (file)
@@ -951,7 +951,7 @@ out:
 /*
  * Network interface unit routines.
  */
-static int
+static netdev_tx_t
 ppp_start_xmit(struct sk_buff *skb, struct net_device *dev)
 {
        struct ppp *ppp = netdev_priv(dev);
@@ -1431,6 +1431,7 @@ static int ppp_mp_explode(struct ppp *ppp, struct sk_buff *skb)
                *otherwise divide it according to the speed
                *of the channel we are going to transmit on
                */
+               flen = len;
                if (nfree > 0) {
                        if (pch->speed == 0) {
                                flen = totlen/nfree     ;