diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2014-09-17 08:05:43 (GMT) |
---|---|---|
committer | Madalin Bucur <madalin.bucur@freescale.com> | 2014-10-08 13:19:56 (GMT) |
commit | cee56d2b0c5775ea9452a19ecba8973a32254a28 (patch) | |
tree | a0a9ab50518527d96773f54c021f30eb8faa806a /drivers | |
parent | 802a44334246b234ce15f179677c43341a70e762 (diff) | |
download | linux-fsl-qoriq-cee56d2b0c5775ea9452a19ecba8973a32254a28.tar.xz |
dpaa_eth: add explicit cast where needed
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: Idc795a681df8b11532e1fdbd2f18c365bfa8a671
Reviewed-on: http://git.am.freescale.net:8181/19007
Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/offline_port.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c index 9447d31..21d177a 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_generic.c @@ -578,7 +578,7 @@ int dpa_generic_tx_csum(struct dpa_generic_priv_s *priv, /* At index 0 is IPOffset_1 as defined in the Parse Results */ parse_result->ip_off[0] = (uint8_t)skb_network_offset(skb); - parse_result->l4_off = skb_transport_offset(skb); + parse_result->l4_off = (uint8_t)skb_transport_offset(skb); /* Enable L3 (and L4, if TCP or UDP) HW checksum. */ fd->cmd |= FM_FD_CMD_RPD | FM_FD_CMD_DTC; diff --git a/drivers/net/ethernet/freescale/dpa/offline_port.c b/drivers/net/ethernet/freescale/dpa/offline_port.c index 5383ad8..141d34f 100644 --- a/drivers/net/ethernet/freescale/dpa/offline_port.c +++ b/drivers/net/ethernet/freescale/dpa/offline_port.c @@ -715,7 +715,7 @@ config_port: goto return_kfree; } - oh_port_tx_params.pool_param[i].id = *bpid; + oh_port_tx_params.pool_param[i].id = (uint8_t)*bpid; dev_dbg(dpa_oh_dev, "OH port bpool id = %u\n", *bpid); bpool_cfg = of_get_property(bpool_node, |