]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/iseries_veth.c
drivers/net: Remove unnecessary casts of netdev_priv
[net-next-2.6.git] / drivers / net / iseries_veth.c
index ba1de5973fb2083fe669027d551ea98d427bf350..38e15be6d5135e00af3766da939f5ab93c5db87b 100644 (file)
@@ -1524,7 +1524,7 @@ static void veth_receive(struct veth_lpar_connection *cnx,
 
                skb_put(skb, length);
                skb->protocol = eth_type_trans(skb, dev);
-               skb->ip_summed = CHECKSUM_NONE;
+               skb_checksum_none_assert(skb);
                netif_rx(skb);  /* send it up */
                dev->stats.rx_packets++;
                dev->stats.rx_bytes += length;
@@ -1605,7 +1605,7 @@ static int veth_probe(struct vio_dev *vdev, const struct vio_device_id *id)
        }
        veth_dev[i] = dev;
 
-       port = (struct veth_port*)netdev_priv(dev);
+       port = netdev_priv(dev);
 
        /* Start the state machine on each connection on this vlan. If we're
         * the first dev to do so this will commence link negotiation */